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.
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
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:
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
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.