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:
parent
fa886874b0
commit
5a538cbdd2
1 changed files with 1 additions and 1 deletions
|
@ -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 }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue