summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-06-01 17:47:16 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-06-01 17:47:16 +0200
commita87038033bf89fce2838750f62509f14d956ef88 (patch)
tree988796ed594811a54fba97db98455153ac433155 /roles
parentwith subelements -> loop (diff)
with_flattened vs loop
Diffstat (limited to 'roles')
-rw-r--r--roles/kubernetes/net/tasks/remove.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/roles/kubernetes/net/tasks/remove.yml b/roles/kubernetes/net/tasks/remove.yml
index 6695bd5d..e74f42c1 100644
--- a/roles/kubernetes/net/tasks/remove.yml
+++ b/roles/kubernetes/net/tasks/remove.yml
@@ -19,9 +19,7 @@
register: kubenet_units_installed
- name: remove all kubenet related files and directories
- with_flattened:
- - "{{ kubenet_units_installed.files | map(attribute='path') | list }}"
- - /var/lib/kubenet
+ loop: "{{ kubenet_units_installed.files | map(attribute='path') | list | flatten | union(['/var/lib/kubenet']) }}"
file:
path: "{{ item }}"
state: absent