check lsb id

networking
histausse 3 years ago
parent a567a9e27f
commit 9c208606de
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -40,11 +40,11 @@
- name: Create interface config files
ansible.builtin.template:
src: "interfaces.j2"
src: "debian_interfaces.j2"
dest: "/etc/network/interfaces"
owner: root
group: root
mode: '644'
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…
Cancel
Save