From 5b1794525701c987bfb80fbb7c3f2c2c379864ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 15 Dec 2021 18:21:45 +0000 Subject: roles: Add Znc and apply to dc0 host --- roles/znc/tasks/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 roles/znc/tasks/main.yml (limited to 'roles/znc/tasks') diff --git a/roles/znc/tasks/main.yml b/roles/znc/tasks/main.yml new file mode 100644 index 0000000..a1ccf3d --- /dev/null +++ b/roles/znc/tasks/main.yml @@ -0,0 +1,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 -- cgit v1.2.3