src.nth.io/

summaryrefslogtreecommitdiff
path: root/ngircd
diff options
context:
space:
mode:
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"