Created
February 24, 2014 14:54
-
-
Save Govinda-Fichtner/9189759 to your computer and use it in GitHub Desktop.
behaviour of tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Setup common tasks on all servers | |
hosts: development | |
user: root | |
gather_facts: true | |
roles: | |
- { role: 'common', tags: 'common' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── roles | |
│ ├── common | |
│ │ ├── files | |
│ │ ├── handlers | |
│ │ ├── tasks | |
│ |.. |.. ├── main.yml | |
│ │ └── templates | |
├── example.yml |
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
If I change line 7 of main.yml to
... I do not have the 'common"-tag in my list anymore. Why?