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
|
||||
- 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
|
||||
|
||||
- name: Disable cloud-init the easy way
|
||||
shell: touch /etc/cloud/cloud-init.disabled
|
||||
when: "{{ item }}" == "50-cloud-init.yaml"
|
||||
when: ("item" == "50-cloud-init.yaml")
|
||||
with_items:
|
||||
- "{{ netplan.stdout }}"
|
||||
|
||||
|
@ -13,9 +13,9 @@
|
|||
file:
|
||||
state: absent
|
||||
dest: /etc/netplan/{{ item }}
|
||||
when: "{{ item }}" != ""
|
||||
with_items:
|
||||
- "{{ netplan.stdout }}"
|
||||
when: netplan.stdout.find("yml") != -1
|
||||
|
||||
### NM might need attention also
|
||||
- name: Disable the stock dnsmasq unit file that starts too early with systemd_networkd_active
|
||||
|
|
Loading…
Reference in a new issue