[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-22 Thread Anfield
Good question Mike, no requirement, just learning this incase it comes up in the cert. exam. Based on that link from the docs I still dont know why you would call a role with tags >> >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-18 Thread Anfield
If I remove the tag from the role and leave it on the task, then it will run both tasks? Both tasks are tagged -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an

[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-17 Thread Mike Klebolt
I use tags at the role level when I have a play that contains multiple roles. If all you're wanting to do is run the config apache task, remove the config_apache tag from the role and leave it on the task. Hopefully I'm understanding your question correctly. --- - hosts: 10.10.0.5 become:

[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-17 Thread Anfield
Ok..Not sure I follow. So what would be the point then in calling a role with tags at all, if you cannot define which tag to use? >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] Re: How to call roles & specify tags for those roles

2017-08-17 Thread Mike Klebolt
If you are adding a tag to a role, there is no need to use the same tag on any of the tasks within the role. So running your playbook with -t config_apache will include both tasks. Running it with -t apache_install will only run the Install apache task.