check lsb id
This commit is contained in:
parent
a567a9e27f
commit
9c208606de
2 changed files with 2 additions and 2 deletions
|
@ -40,11 +40,11 @@
|
||||||
|
|
||||||
- name: Create interface config files
|
- name: Create interface config files
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "interfaces.j2"
|
src: "debian_interfaces.j2"
|
||||||
dest: "/etc/network/interfaces"
|
dest: "/etc/network/interfaces"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '644'
|
mode: '644'
|
||||||
notify: Reload network interfaces debian
|
notify: Reload network interfaces debian
|
||||||
when: ("raspbian_buster" not in group_names) and ("ubuntu" not in group_names)
|
when: ansible_facts["lsb"]["id"] == "Debian"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue