diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-14 17:18:01 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 17:18:01 +0800 |
commit | de6c949a2956deed27b9c053bfcaac1a47ed43a6 (patch) | |
tree | 9ef16150e20ad4fe5072f64d9388660c25aa0ed6 /roles/znc/tasks | |
parent | 4e4575924b61d26c9e3e0d0770fc2908ac192f7f (diff) | |
download | ansible-dfly-vps-de6c949a2956deed27b9c053bfcaac1a47ed43a6.tar.bz2 |
Add znc role: IRC bouncer
Diffstat (limited to 'roles/znc/tasks')
-rw-r--r-- | roles/znc/tasks/main.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/znc/tasks/main.yml b/roles/znc/tasks/main.yml new file mode 100644 index 0000000..e64949f --- /dev/null +++ b/roles/znc/tasks/main.yml @@ -0,0 +1,29 @@ +--- +- name: znc - install package + pkgng: + name: znc + state: present + +- name: znc - create config directory + file: + path: /usr/local/etc/znc/configs + state: directory + +- name: znc - generate config file + template: + src: znc.conf.j2 + dest: /usr/local/etc/znc/configs/znc.conf + owner: znc + group: znc + mode: 0600 + backup: yes + notify: reload-znc + +- name: znc - enable and start service + command: rcenable znc + +- name: acme - generate deployment script + template: + src: acme/znc.j2 + dest: /usr/local/etc/acme/deploy.d/znc + tags: acme |