How can I apply a tag to every command in an Ansible tasks file?


The Ansible best-practices documentation has this example code:

I’m looking to avoid duplicating the tags: ntp line. Is it possible for each of these instructions to inherit a tag?


You could work with – block:

~ ansible-playbook -i realtime-automation/hosts-slaves become.yml –tags “block1”

In your specific case:

Leave a Reply