fix broken radius role

Would crash if called from anything other than the nuke radius DBs
playbook
This commit is contained in:
Yohaï-Eliel BERREBY 2020-08-08 11:32:06 +02:00
parent af3c3dc132
commit b199c45d97

View file

@ -123,7 +123,7 @@
systemd: systemd:
name: freeradius name: freeradius
state: stopped state: stopped
when: nuke_radius|bool when: nuke_radius|default(false)
- name: Nuking - Remove old subscription if it exists - name: Nuking - Remove old subscription if it exists
community.general.postgresql_subscription: community.general.postgresql_subscription:
@ -131,7 +131,7 @@
db: re2o db: re2o
state: absent state: absent
become_user: postgres become_user: postgres
when: nuke_radius|bool when: nuke_radius|default(false)
ignore_errors: yes ignore_errors: yes
- name: Nuking - Destroy old local DB if it exists - name: Nuking - Destroy old local DB if it exists
@ -139,7 +139,7 @@
name: re2o name: re2o
state: absent state: absent
become_user: postgres become_user: postgres
when: nuke_radius|bool when: nuke_radius|default(false)
- name: Create local DB - name: Create local DB
community.general.postgresql_db: community.general.postgresql_db: