src.nth.io/

summaryrefslogtreecommitdiff
path: root/ngircd
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-06-14 11:40:43 -0500
committerLuke Hoersten <[email protected]>2020-06-14 11:40:43 -0500
commit14db502f6c158fc61c324d7cba5167fbcc27f4ce (patch)
tree3127dbc3187d6cd20a0fe55d5283b9d6f546ccb7 /ngircd
parent70ffa64a77f1bc2c33b9eec173a49d93900f9b79 (diff)
Added ngircd.
Diffstat (limited to 'ngircd')
-rw-r--r--ngircd/handlers/main.yaml5
-rw-r--r--ngircd/tasks/main.yaml26
2 files changed, 31 insertions, 0 deletions
diff --git a/ngircd/handlers/main.yaml b/ngircd/handlers/main.yaml
new file mode 100644
index 0000000..7478b59
--- /dev/null
+++ b/ngircd/handlers/main.yaml
@@ -0,0 +1,5 @@
+---
+
+- name: restart ngircd
+ become: yes
+ systemd: name="ngircd" state="restarted" daemon_reload="yes"
diff --git a/ngircd/tasks/main.yaml b/ngircd/tasks/main.yaml
new file mode 100644
index 0000000..5080d0f
--- /dev/null
+++ b/ngircd/tasks/main.yaml
@@ -0,0 +1,26 @@
+---
+
+- name: apt install ngircd
+ become: yes
+ apt: name="ngircd"
+ notify: restart ngircd
+
+- name: config server name
+ become: yes
+ lineinfile:
+ path: "/etc/ngircd/ngircd.conf"
+ regexp: '^ Name ='
+ line: " Name = {{ngircd_name}}"
+ notify: restart ngircd
+
+- name: set motd
+ become: yes
+ copy:
+ src: "{{ngircd_motd_src}}"
+ dest: "/etc/ngircd/ngircd.motd"
+ mode: "0644"
+ notify: restart ngircd
+
+- name: start ngircd service
+ become: yes
+ systemd: name="ngircd" state="started" daemon_reload="yes"