blob: cc19fd2ed1624737c4e75602bf015ab1194dbddf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
- name: install whawty app
apt:
name: "{{ ['whawty-auth'] | union(whawty_auth_app_install_pam_module | ternary(['libpam-whawty'], [])) }}"
state: present
- name: generate systemd service units
loop: "{{ whawty_auth_app_instances | dict2items(key_name='name', value_name='config') }}"
loop_control:
loop_var: whawty_auth_app
label: "{{ whawty_auth_app.name }}"
template:
src: systemd.service.j2
dest: "/etc/systemd/system/whawty-auth-{{ whawty_auth_app.name }}.service"
- name: generate, start and enable systemd socket units
loop: "{{ whawty_auth_app_instances | dict2items(key_name='name', value_name='config') }}"
loop_control:
loop_var: whawty_auth_app
label: "{{ whawty_auth_app.name }}"
include_tasks: listeners.yml
|