1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #237 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2019-05-04 03:12:26 -04:00 committed by GitHub
commit b443496532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -104,9 +104,10 @@
tags: tags:
- network - network
- name: Netplan in use on Ubuntu 18 - name: Netplan in use on Ubuntu 18.04+
include_tasks: netplan.yml include_tasks: netplan.yml
when: is_ubuntu_18 when: is_ubuntu and not is_ubuntu_16
#when: is_ubuntu_18
#and not installing #and not installing
tags: tags:
- network - network

View file

@ -1,5 +1,4 @@
# netplan.yml - name: Figure out netplan file name
- name: Figure out netplan file name on Ubuntu 18
shell: ls /etc/netplan shell: ls /etc/netplan
register: netplan register: netplan
@ -12,7 +11,7 @@
- name: Remove stock netplan template - name: Remove stock netplan template
file: file:
state: absent state: absent
dest: /etc/netplan/{{ item }} path: /etc/netplan/{{ item }}
with_items: with_items:
- "{{ netplan.stdout_lines }}" - "{{ netplan.stdout_lines }}"
when: netplan.stdout.find("yaml") != -1 when: netplan.stdout.find("yaml") != -1