You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
531 B
28 lines
531 B
8 years ago
|
- name: install/upgrade znc
|
||
|
apt: name=znc state=latest
|
||
|
become: true
|
||
|
|
||
|
- name: znc config
|
||
|
copy:
|
||
|
src: znc/{{ item }}
|
||
|
dest: ~/.znc/{{ item | splitext | first }}
|
||
|
with_items:
|
||
|
- configs/znc.conf.private
|
||
|
- znc.pem.private
|
||
|
|
||
|
- name: znc systemd
|
||
|
copy:
|
||
|
src: znc/znc.service
|
||
|
dest: ~/.config/systemd/user/znc.service
|
||
|
|
||
8 years ago
|
- command: loginctl enable-linger {{ ansible_env.USER }}
|
||
|
become: true
|
||
|
|
||
8 years ago
|
- name: restart znc
|
||
|
systemd:
|
||
|
name: znc
|
||
|
daemon_reload: yes
|
||
|
enabled: yes
|
||
|
state: restarted
|
||
|
user: yes
|