1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

yaml syntax

This commit is contained in:
Jerry Vonau 2018-12-15 18:55:18 +00:00
parent 3e36883758
commit bba77de643

View file

@ -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