WIP : add_rives_vm_master #42

Merged
jeltz merged 12 commits from add_rives_vm_master into master 2021-04-06 19:39:17 +02:00
2 changed files with 11 additions and 9 deletions
Showing only changes of commit a1533b7efd - Show all commits

7
nuke_radius_dbs.yml Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env ansible-playbook
---
- hosts: radius-*.adm.auro.re
roles:
- radius
vars:
nuke_radius: true

View file

@ -5,8 +5,6 @@
loop:
- "deb"
- "deb-src"
when:
- ansible_lsb.codename == 'buster'
- name: Ensure /var/www exists
file:
@ -36,6 +34,7 @@
- name: try to install freeradius-python3 (this will fail on post-install)
apt:
name: freeradius-python3
default_release: buster-backports
update_cache: true
ignore_errors: true
@ -48,6 +47,7 @@
- name: reinstall broken package (this might fail too, for different reasons)
apt:
name: freeradius-python3
default_release: buster-backports
force: true
ignore_errors: true
@ -128,7 +128,8 @@
apt:
name:
- postgresql
- postgresql-client
- postgresql-client-11=11.7-0+deb10u1
force: yes
- name: Install postgresql ansible module requirement(s)
pip:
@ -253,12 +254,6 @@
- re2o_pub
become_user: postgres
- name: Install freeradius re2o with Python3.X
template:
src: python_re2o.j2
dest: /etc/freeradius/3.0/mods-enabled/python
mode: 0640
owner: freerad
- name: Restart freeradius, ensure enabled
systemd: