ngircd/tasks/main.yaml
changeset 48 4b18b1523ec2
parent 43 b86f3fc9fb6f
child 113 d843011c249d
--- a/ngircd/tasks/main.yaml	Mon Jun 15 23:25:16 2020 -0500
+++ b/ngircd/tasks/main.yaml	Mon Jun 15 23:26:27 2020 -0500
@@ -13,7 +13,24 @@
     line: "	Name = {{ngircd_name}}"
   notify: restart ngircd
 
-- name: set motd
+- name: config server local listen
+  become: yes
+  lineinfile:
+    path: "/etc/ngircd/ngircd.conf"
+    regexp: '^	Listen ='
+    line: "	Listen = 127.0.0.1"
+    insertafter: "^	;Listen ="
+  notify: restart ngircd
+
+- name: config motd
+  become: yes
+  lineinfile:
+    path: "/etc/ngircd/ngircd.conf"
+    regexp: '^	Info ='
+    line: "	Info = {{ngircd_motd}}"
+  notify: restart ngircd
+
+- name: copy motd file
   become: yes
   copy:
     src: "{{ngircd_motd_src}}"