diff options
| author | Tharre <tharre3@gmail.com> | 2019-02-19 05:33:14 +0100 | 
|---|---|---|
| committer | Tharre <tharre3@gmail.com> | 2019-02-19 05:33:14 +0100 | 
| commit | cbd109adc0822485431fa64e4d552facf05ad02b (patch) | |
| tree | 56c79830084c66d596352810978fb63e9037caab /roles/znc/tasks | |
| parent | be9e20c2d2d8f9bb677056ca08e3f41e2b733333 (diff) | |
| download | infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.gz infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.xz infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.zip  | |
Add znc role
Diffstat (limited to 'roles/znc/tasks')
| -rw-r--r-- | roles/znc/tasks/main.yml | 30 | 
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/znc/tasks/main.yml b/roles/znc/tasks/main.yml new file mode 100644 index 0000000..bf3d3ff --- /dev/null +++ b/roles/znc/tasks/main.yml @@ -0,0 +1,30 @@ +--- + +- name: Install znc +  package: +    name: znc +    state: present + +- name: Install certbot hook +  copy: +    src: znc-certbot-hook +    dest: /etc/letsencrypt/renewal-hooks/deploy/znc +    owner: root +    group: root +    mode: 0755 + +- name: Copy nginx conf file +  template: +    src: znc_nginx.conf.j2 +    dest: /etc/nginx/nginx.d/znc.conf +    mode: 0644 +    owner: "root" +    group: "root" +  notify: +    - reload nginx + +- name: Enable znc +  service: +    name: znc.service +    state: started +    enabled: yes  | 
