mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
yaml syntax
This commit is contained in:
parent
3e36883758
commit
bba77de643
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
# netplan.yml
|
# netplan.yml
|
||||||
- name: Figure out netplan file name on Ubuntu 18
|
- name: Figure out netplan file name on Ubuntu 18
|
||||||
shell: ls /etc/netplan | grep -v -e 01-iiab-config
|
shell: ls /etc/netplan
|
||||||
register: netplan
|
register: netplan
|
||||||
|
|
||||||
- name: Disable cloud-init the easy way
|
- name: Disable cloud-init the easy way
|
||||||
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 }}"
|
||||||
|
|
||||||
|
@ -13,9 +13,9 @@
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
dest: /etc/netplan/{{ item }}
|
dest: /etc/netplan/{{ item }}
|
||||||
when: "{{ item }}" != ""
|
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ netplan.stdout }}"
|
- "{{ netplan.stdout }}"
|
||||||
|
when: netplan.stdout.find("yml") != -1
|
||||||
|
|
||||||
### NM might need attention also
|
### NM might need attention also
|
||||||
- name: Disable the stock dnsmasq unit file that starts too early with systemd_networkd_active
|
- name: Disable the stock dnsmasq unit file that starts too early with systemd_networkd_active
|
||||||
|
|
Loading…
Reference in a new issue