src.nth.io/

summaryrefslogtreecommitdiff
path: root/ngircd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'ngircd/tasks')
-rw-r--r--ngircd/tasks/main.yaml19
1 files changed, 18 insertions, 1 deletions
diff --git a/ngircd/tasks/main.yaml b/ngircd/tasks/main.yaml
index 5080d0f..979deba 100644
--- a/ngircd/tasks/main.yaml
+++ b/ngircd/tasks/main.yaml
@@ -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}}"