From b199c45d97d0e1757ac754c62701b1aaad47a0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoha=C3=AF-Eliel=20BERREBY?= Date: Sat, 8 Aug 2020 11:32:06 +0200 Subject: [PATCH] fix broken radius role Would crash if called from anything other than the nuke radius DBs playbook --- roles/radius/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/radius/tasks/main.yml b/roles/radius/tasks/main.yml index ba3024e..e7943f0 100644 --- a/roles/radius/tasks/main.yml +++ b/roles/radius/tasks/main.yml @@ -123,7 +123,7 @@ systemd: name: freeradius state: stopped - when: nuke_radius|bool + when: nuke_radius|default(false) - name: Nuking - Remove old subscription if it exists community.general.postgresql_subscription: @@ -131,7 +131,7 @@ db: re2o state: absent become_user: postgres - when: nuke_radius|bool + when: nuke_radius|default(false) ignore_errors: yes - name: Nuking - Destroy old local DB if it exists @@ -139,7 +139,7 @@ name: re2o state: absent become_user: postgres - when: nuke_radius|bool + when: nuke_radius|default(false) - name: Create local DB community.general.postgresql_db: