Refactor all_services to remove name attribute
This commit is contained in:
parent
6f9f888478
commit
1d14ac888e
16 changed files with 42 additions and 71 deletions
playbooks
|
@ -21,11 +21,11 @@
|
|||
|
||||
- name: Include service roles
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ services_item.name }}"
|
||||
name: "{{ services_item }}"
|
||||
apply:
|
||||
tags: "{{ services_item.name }}"
|
||||
tags: "{{ services_item }}"
|
||||
tags: always
|
||||
loop: "{{ host_services }}"
|
||||
loop: "{{ host_services | services_names() }}"
|
||||
loop_control:
|
||||
loop_var: services_item
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue