mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
netplan.yml - use item|trim for delete test
This commit is contained in:
parent
fa886874b0
commit
5a538cbdd2
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: /etc/netplan/{{ item }}
|
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:
|
with_items:
|
||||||
- "{{ netplan.stdout_lines }}"
|
- "{{ netplan.stdout_lines }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue