check lsb id

This commit is contained in:
histausse 2021-07-08 01:54:10 +02:00
parent a567a9e27f
commit 9c208606de
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 2 additions and 2 deletions

View file

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