From fe62055cdd625ec5bab692be0b1a8c57584d629e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoha=C3=AF-Eliel=20BERREBY?= Date: Thu, 21 May 2020 19:25:30 +0200 Subject: [PATCH] radius: enable service, fix details --- network.yml | 2 +- roles/radius/tasks/main.yml | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/network.yml b/network.yml index 4958116..d16893d 100755 --- a/network.yml +++ b/network.yml @@ -28,7 +28,7 @@ # Radius (backup only for now) -- hosts: ~radius-(edc|fleming)-backup\.adm\.auro\.re +- hosts: ~radius-(edc|fleming|pacaterie).* roles: - radius diff --git a/roles/radius/tasks/main.yml b/roles/radius/tasks/main.yml index dfdeac8..9172c79 100644 --- a/roles/radius/tasks/main.yml +++ b/roles/radius/tasks/main.yml @@ -36,18 +36,18 @@ default_release: buster-backports update_cache: yes ignore_errors: yes - no_log: yes - name: fix freeradius-python3 postinstall script template: src: freeradius-python3.postinst.j2 dest: /var/lib/dpkg/info/freeradius-python3.postinst -- name: reinstall broken backpage +- name: reinstall broken package (this might fail too, for different reasons) apt: name: freeradius-python3 default_release: buster-backports force: yes + ignore_errors: yes - name: Setup radius symlinks file: @@ -93,7 +93,6 @@ dest: "/etc/logrotate.d/freeradius" - # Database setup @@ -203,3 +202,11 @@ publications: - re2o_pub become_user: postgres + + +- name: Restart freeradius, ensure enabled + systemd: + name: freeradius + enabled: yes + state: restarted + daemon_reload: yes