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/tasks
|
@ -14,4 +14,4 @@
|
|||
|
||||
- name: Set unused services
|
||||
ansible.builtin.set_fact:
|
||||
unused_services: "{{ docker_compose_projects_result.stdout_lines | difference(host_services | map(attribute='name')) }}"
|
||||
unused_services: "{{ docker_compose_projects_result.stdout_lines | difference(host_services | services_names()) }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue