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
|
loop_var: rolename
|
||||||
when: custom_roles is defined
|
when: custom_roles is defined
|
||||||
|
|
||||||
- name: Final tasks
|
- name: Import role security
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.import_role:
|
||||||
name: "{{ role }}"
|
name: lmn_security
|
||||||
loop_control:
|
|
||||||
loop_var: role
|
- name: Import role finish
|
||||||
loop:
|
ansible.builtin.import_role:
|
||||||
- lmn_security
|
name: lmn_finish
|
||||||
- lmn_finish
|
|
||||||
- lmn_tmpfixes
|
- name: Import role tmpfixes
|
||||||
|
ansible.builtin.import_role:
|
||||||
|
name: lmn_tmpfixes
|
||||||
|
|
||||||
|
|
||||||
- name: Apply roles that must run serial
|
- name: Apply roles that must run serial
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue