Merge branch 'master' of adellam/ansible-roles into master
This commit is contained in:
commit
25a9e4dd13
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
freeradius_install: True
|
||||
freeradius_pkgs:
|
||||
- freeradius
|
||||
- freeradius-config
|
||||
- freeradius-utils
|
||||
|
||||
freeradius_additional_modules: []
|
||||
#- freeradius-dhcp - DHCP module for FreeRADIUS server
|
||||
#- freeradius-iodbc - iODBC module for FreeRADIUS server
|
||||
#- freeradius-ldap - LDAP module for FreeRADIUS server
|
||||
#- freeradius-mysql - MySQL module for FreeRADIUS server
|
||||
#- freeradius-postgresql - PostgreSQL module for FreeRADIUS server
|
||||
#- freeradius-redis - Redis module for FreeRADIUS server
|
||||
#- freeradius-rest - REST module for FreeRADIUS server
|
||||
#- freeradius-yubikey - Yubikey module for FreeRADIUS server
|
||||
|
||||
freeradius_memcache_module: True
|
||||
freeradius_local_memcache_support: '{{ freeradius_memcache_module }}'
|
||||
freeradius_redis_module: False
|
||||
freeradius_local_redis_support: '{{ freeradius_redis_module }}'
|
||||
|
||||
freeradius_to_be_disabled_modules: []
|
||||
|
||||
freeradius_enabled_modules: []
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: '../../library/roles/memcached', when: freeradius_local_memcache_support }
|
||||
- { role: '../../library/roles/redis', when: freeradius_local_redis_support }
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the core freeradius packages
|
||||
apt: pkg={{ freeradius_pkgs }} state=present cache_valid_time=3600
|
||||
|
||||
- name: Install the additional freeradius packages
|
||||
apt: pkg={{ freeradius_additional_modules }} state=present cache_valid_time=3600
|
||||
|
||||
- name: Install the freeradius memcached module if needed
|
||||
apt: pkg=freeradius-memcached state=present cache_valid_time=3600
|
||||
when: freeradius_memcache_module
|
||||
|
||||
- name: Install the freeradius redis module if needed
|
||||
apt: pkg=freeradius-redis state=present cache_valid_time=3600
|
||||
when: freeradius_redis_module
|
||||
|
||||
tags: freeradius
|
||||
|
||||
- block:
|
||||
- name: Disable some modules
|
||||
file: dest=/etc/freeradius/3.0/mods-enabled/{{ item }} state=absent
|
||||
with_items: '{{ freeradius_to_be_disabled_modules }}'
|
||||
|
||||
- name: Enable some modules
|
||||
file: src=/etc/freeradius/3.0/mods-available/{{ item }} dest=/etc/freeradius/3.0/mods-enabled/{{ item }} state=link
|
||||
with_items: '{{ freeradius_enabled_modules }}'
|
||||
|
||||
tags: [ 'freeradius', 'freeradius_modules' ]
|
Loading…
Reference in New Issue