From a8e6b5114e2ae0dae37cff04af16df47b929d19b Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 26 Aug 2020 11:48:36 +0200 Subject: rev1 for znc on openbsd --- roles/setup_znc/tasks/main.yml | 27 +++++++++++++++++++++++++++ roles/setup_znc/vars/main.yml | 16 ++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 roles/setup_znc/tasks/main.yml create mode 100644 roles/setup_znc/vars/main.yml diff --git a/roles/setup_znc/tasks/main.yml b/roles/setup_znc/tasks/main.yml new file mode 100644 index 0000000..6ebbaa8 --- /dev/null +++ b/roles/setup_znc/tasks/main.yml @@ -0,0 +1,27 @@ + +# =========================================================================== # +# __ _ __ +# _________ / /__ ____ _(_) /_ +# / ___/ __ \/ / _ \ / __ `/ / __/ +# / / / /_/ / / __/ / /_/ / / /_ +# /_/ \____/_/\___(_) \__, /_/\__/ +# /____/ +# +# =========================================================================== # + +--- +- name: Check installation of znc + package: + name: znc + state: present + +- name: Add group "{{ znc_group }}" + user: + name: "{{ znc_group }}" + state: present + +- name: Add user "{{ znc_user }}" + user: + name: "{{ znc_user }}" + comment: "{{ znc_user_comment }}" + group: "{{ znc_group }}" diff --git a/roles/setup_znc/vars/main.yml b/roles/setup_znc/vars/main.yml new file mode 100644 index 0000000..2db1770 --- /dev/null +++ b/roles/setup_znc/vars/main.yml @@ -0,0 +1,16 @@ + +# =========================================================================== # +# _ __ +# _ ______ __________ ____ _(_) /_ +# | | / / __ `/ ___/ ___/ / __ `/ / __/ +# | |/ / /_/ / / (__ ) / /_/ / / /_ +# |___/\__,_/_/ /____(_) \__, /_/\__/ +# /____/ +# +# =========================================================================== # + +--- +znc_user: znc +znc_user_comment: IRC bouncer +znc_group: znc +znc_directory_path: /srv/znc -- cgit v1.2.3