1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

netplan.yml - use item|trim for delete test

This commit is contained in:
Jerry Vonau 2020-04-23 10:57:50 -05:00
parent fa886874b0
commit 5a538cbdd2

View file

@ -8,7 +8,7 @@
file:
state: absent
path: /etc/netplan/{{ item }}
when: netplan.stdout.find("yaml") != -1 and (item != "02-iiab-config.yaml")
when: netplan.stdout.find("yaml") != -1 and item|trim != "02-iiab-config.yaml"
with_items:
- "{{ netplan.stdout_lines }}"