Skip to content

Instantly share code, notes, and snippets.

@Govinda-Fichtner
Created February 24, 2014 14:54
Show Gist options
  • Save Govinda-Fichtner/9189759 to your computer and use it in GitHub Desktop.
Save Govinda-Fichtner/9189759 to your computer and use it in GitHub Desktop.
behaviour of tags
---
- name: Setup common tasks on all servers
hosts: development
user: root
gather_facts: true
roles:
- { role: 'common', tags: 'common' }
---
- include: setup_dns_resolution.yml tags=dns
- include: setup_logging.yml tags=logging
- include: install_useful_sysadmin_tools.yml tags=tools
- include: setup_nfs.yml tags=nfs
- include: setup_system_localization.yml tags=localization
- include: setup_shell_for_users.yml
├── roles
│   ├── common
│   │   ├── files
│   │   ├── handlers
│   │   ├── tasks
│   |.. |.. ├── main.yml
│   │   └── templates
├── example.yml
@Govinda-Fichtner
Copy link
Author

What I actually want to do is

% ansible-playbook -i hosts example.yml --tags "common,dns"

which should just run the DNS include from the common role...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment