Hi. The docs (http://docs.ansible.com/playbooks_tags.html) say that the ‘always’ tag will always run a task even if running a playbook with another tag, but it doesn’t do that for me.
I have a role called ‘common’ with a list of dependencies. The first of which is called ‘dynamic_groups’:
`
dependencies:
- dynamic_groups
- . . .
`
The dynamic_groups role just has the one task:
`
- name: Build dynamic OS and Platform groups from system facts
group_by: key={{ item }}
with_items: - “{{ ansible_virtualization_type }}{{ ansible_distribution }}{{ ansible_distribution_major_version }}”
- “{{ ansible_distribution }}_{{ ansible_distribution_major_version }}”
tags: - always
`
I have several group_var files to match the different permutations this produces, and an inventory file to organize them into the hierarchy I want. But if I restrict a run with a tag (that is not ‘always’) the task is just ignored, contrary to the documentation.
I’m currently running ansible 1.8.2
Can you confirm if I’m doing this right?
Thanks.