Uncomplicated role always performed

I am looking for a way to always play a role regardless of --tagsargs.

Here is a simple play:

- hosts: all
  roles:
    - { role: role1, tags: always },
    - { role: role2, tags: tag1 },
    - { role: role3, tags: tag2 }

I'd like to run only role1, and role2when you start the next filter (instead role2):

ansible-playbook -i hosts deploy.yml --tags tag1

Although this was the default behavior with a special tag always(see http://docs.ansible.com/ansible/playbooks_tags.html#special-tags )

I play with Ansible 1.8.4.

+4
source share
1 answer

Most likely, your problem with Ansible is a problem.

always , devel 25 . releases, Ansible 1.9.0-1.

+1

Source: https://habr.com/ru/post/1620288/


All Articles