Fix issues for installing radius-rives (baq package for postgresql-client)
This commit is contained in:
parent
ffbedf6d35
commit
a1533b7efd
2 changed files with 11 additions and 9 deletions
7
nuke_radius_dbs.yml
Executable file
7
nuke_radius_dbs.yml
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
---
|
||||||
|
- hosts: radius-*.adm.auro.re
|
||||||
|
roles:
|
||||||
|
- radius
|
||||||
|
vars:
|
||||||
|
nuke_radius: true
|
|
@ -5,8 +5,6 @@
|
||||||
loop:
|
loop:
|
||||||
- "deb"
|
- "deb"
|
||||||
- "deb-src"
|
- "deb-src"
|
||||||
when:
|
|
||||||
- ansible_lsb.codename == 'buster'
|
|
||||||
|
|
||||||
- name: Ensure /var/www exists
|
- name: Ensure /var/www exists
|
||||||
file:
|
file:
|
||||||
|
@ -36,6 +34,7 @@
|
||||||
- name: try to install freeradius-python3 (this will fail on post-install)
|
- name: try to install freeradius-python3 (this will fail on post-install)
|
||||||
apt:
|
apt:
|
||||||
name: freeradius-python3
|
name: freeradius-python3
|
||||||
|
default_release: buster-backports
|
||||||
update_cache: true
|
update_cache: true
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
@ -48,6 +47,7 @@
|
||||||
- name: reinstall broken package (this might fail too, for different reasons)
|
- name: reinstall broken package (this might fail too, for different reasons)
|
||||||
apt:
|
apt:
|
||||||
name: freeradius-python3
|
name: freeradius-python3
|
||||||
|
default_release: buster-backports
|
||||||
force: true
|
force: true
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
@ -128,7 +128,8 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- postgresql
|
- postgresql
|
||||||
- postgresql-client
|
- postgresql-client-11=11.7-0+deb10u1
|
||||||
|
force: yes
|
||||||
|
|
||||||
- name: Install postgresql ansible module requirement(s)
|
- name: Install postgresql ansible module requirement(s)
|
||||||
pip:
|
pip:
|
||||||
|
@ -253,12 +254,6 @@
|
||||||
- re2o_pub
|
- re2o_pub
|
||||||
become_user: postgres
|
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
|
- name: Restart freeradius, ensure enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
Loading…
Reference in a new issue