From 9f7d264727e283359605d2aca7d26851b7d09801 Mon Sep 17 00:00:00 2001 From: nqb Date: Fri, 28 Aug 2020 14:49:05 +0200 Subject: [PATCH 1/2] disable systemd-networkd to manage network with ifupdown No need to install NetworkManager --- .../roles/packetfence_common/tasks/debian.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 From a4e73887bb33f1ea7fcdac1d91090ed718fdb90d Mon Sep 17 00:00:00 2001 From: nqb Date: Fri, 28 Aug 2020 14:52:56 +0200 Subject: [PATCH 2/2] add CHANGELOG and bump version --- CHANGELOG.md | 1 + packetfence/galaxy.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: