diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-01 17:47:16 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-01 17:47:16 +0200 |
commit | a87038033bf89fce2838750f62509f14d956ef88 (patch) | |
tree | 988796ed594811a54fba97db98455153ac433155 /roles | |
parent | with subelements -> loop (diff) |
with_flattened vs loop
Diffstat (limited to 'roles')
-rw-r--r-- | roles/kubernetes/net/tasks/remove.yml | 4 |
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 |