blob: 6161a053db698241c7d992bb30f7d48f06414541 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# znc ~~ roles/znc/tasks/main.yml
# Init znc user, daemon and settings
---
- name: ensure znc package is present
package: name=znc state=present
- name: ensure znc group exists
group:
name: "{{ znc_group }}"
state: present
- name: ensure znc user exists
user:
name: "{{ znc_user }}"
group: "{{ znc_group }}"
system: true
create_home: false
- name: generate and enable znc daemon
include_role: name=rc
vars:
rc_cmd: /usr/local/bin/znc
rc_args: ""
rc_name: znc
rc_user: "{{ znc_user }}"
- name: show hints for generating configuration
debug:
msg: Please generate the znc configuration with `znc --makeconf` as user "{{ znc_user }}"
|