blob: a1ccf3d43b2d1dab593f73577ab8ad81257da5f3 (
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
|
- name: install znc
package:
name: znc
state: present
- name: create znc group
group:
name: "{{ znc_group }}"
state: present
- name: create znc user
user:
name: "{{ znc_user }}"
group: "{{ znc_group }}"
system: true
create_home: true
- name: generate and enable znc service
include_role:
name: rc
vars:
rc_cmd: /usr/local/bin/znc
rc_user: "{{ znc_user }}"
rc_name: znc
- name: enable and start znc
service:
name: znc
state: restarted
enabled: true
|