Allow using tags using import_role instead of include_role
This commit is contained in:
parent
f95b220aa0
commit
3e4f113d86
1 changed files with 11 additions and 9 deletions
|
|
@ -80,15 +80,17 @@
|
|||
loop_var: rolename
|
||||
when: custom_roles is defined
|
||||
|
||||
- name: Final tasks
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ role }}"
|
||||
loop_control:
|
||||
loop_var: role
|
||||
loop:
|
||||
- lmn_security
|
||||
- lmn_finish
|
||||
- lmn_tmpfixes
|
||||
- name: Import role security
|
||||
ansible.builtin.import_role:
|
||||
name: lmn_security
|
||||
|
||||
- name: Import role finish
|
||||
ansible.builtin.import_role:
|
||||
name: lmn_finish
|
||||
|
||||
- name: Import role tmpfixes
|
||||
ansible.builtin.import_role:
|
||||
name: lmn_tmpfixes
|
||||
|
||||
|
||||
- name: Apply roles that must run serial
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue