diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c7e11..e40c253 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Only manage DB and configuration when configurator is disabled +- Manage network using ifupdown on Debian hosts ## [1.0.3] - 2020-07-21 diff --git a/packetfence/galaxy.yml b/packetfence/galaxy.yml index f3808c7..e5ab09c 100644 --- a/packetfence/galaxy.yml +++ b/packetfence/galaxy.yml @@ -4,7 +4,7 @@ namespace: "inverse_inc" name: "packetfence" -version: "1.1.0-1" +version: "1.1.0-2" description: "Collections of Ansible roles to manage PacketFence installations." authors: diff --git a/packetfence/roles/packetfence_common/tasks/debian.yml b/packetfence/roles/packetfence_common/tasks/debian.yml index 95f8f7e..e26f2b9 100644 --- a/packetfence/roles/packetfence_common/tasks/debian.yml +++ b/packetfence/roles/packetfence_common/tasks/debian.yml @@ -8,6 +8,18 @@ state: present update_cache: yes +- name: ensure systemd-networkd is installed + stat: + path: /lib/systemd/system/systemd-networkd.service + register: packetfence_common__register_deb_systemd_networkd + +- name: ensure systemd-networkd is disabled to manage network with ifupdown + service: + name: systemd-networkd + state: stopped + enabled: no + when: packetfence_common__register_deb_systemd_networkd.stat.exists + - name: ensure systemd-resolved is installed stat: path: /lib/systemd/system/systemd-resolved.service