|
|
|
@ -15,15 +15,32 @@ |
|
|
|
|
- modules |
|
|
|
|
tags: radius |
|
|
|
|
|
|
|
|
|
- name: Create radiusd unit snippet dir |
|
|
|
|
file: path=/etc/systemd/system/radiusd.service.d/ state=directory |
|
|
|
|
tags: radius |
|
|
|
|
|
|
|
|
|
- name: Remove obsolete systemd unit override |
|
|
|
|
file: path=/etc/systemd/system/radiusd.service state=absent |
|
|
|
|
register: rad_old_unit |
|
|
|
|
tags: radius |
|
|
|
|
|
|
|
|
|
- name: Overwrite radiusd unit file |
|
|
|
|
template: src=radiusd.service.j2 dest=/etc/systemd/system/radiusd.service |
|
|
|
|
copy: |
|
|
|
|
content: | |
|
|
|
|
[Service] |
|
|
|
|
ExecStartPre= |
|
|
|
|
ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd |
|
|
|
|
ExecStartPre=/usr/sbin/radiusd -C -d /etc/radius |
|
|
|
|
ExecStart= |
|
|
|
|
ExecStart=/usr/sbin/radiusd -d /etc/radius |
|
|
|
|
dest: /etc/systemd/system/radiusd.service.d/99-ansible.conf |
|
|
|
|
register: rad_unit |
|
|
|
|
notify: restart radiusd |
|
|
|
|
tags: radius |
|
|
|
|
|
|
|
|
|
- name: Reload systemd |
|
|
|
|
systemd: daemon_reload=True |
|
|
|
|
when: rad_unit.changed |
|
|
|
|
when: rad_unit.changed or rad_old_unit.changed |
|
|
|
|
tags: radius |
|
|
|
|
|
|
|
|
|
- name: Install client certificate checker script |
|
|
|
|