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