mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use .yml with file name, allow removal of more than one file name
This commit is contained in:
parent
00152a0769
commit
0827827925
1 changed files with 3 additions and 3 deletions
|
@ -7,14 +7,14 @@
|
||||||
shell: touch /etc/cloud/cloud-init.disabled
|
shell: touch /etc/cloud/cloud-init.disabled
|
||||||
when: ("item" == "50-cloud-init.yaml")
|
when: ("item" == "50-cloud-init.yaml")
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ netplan.stdout }}"
|
- "{{ netplan.stdout_lines }}"
|
||||||
|
|
||||||
- name: Remove stock netplan template
|
- name: Remove stock netplan template
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
dest: /etc/netplan/{{ item }}
|
dest: /etc/netplan/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ netplan.stdout }}"
|
- "{{ netplan.stdout_lines }}"
|
||||||
when: netplan.stdout.find("yml") != -1
|
when: netplan.stdout.find("yml") != -1
|
||||||
|
|
||||||
- name: Ensure systemd-networkd-wait-online is enabled
|
- name: Ensure systemd-networkd-wait-online is enabled
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
- name: Supply netplan template
|
- name: Supply netplan template
|
||||||
template:
|
template:
|
||||||
dest: /etc/netplan/01-iiab-config
|
dest: /etc/netplan/01-iiab-config.yml
|
||||||
src: network/netplan.j2
|
src: network/netplan.j2
|
||||||
backup: no
|
backup: no
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue