src.nth.io/

summaryrefslogtreecommitdiff
path: root/ngircd
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-06-15 23:26:27 -0500
committerLuke Hoersten <[email protected]>2020-06-15 23:26:27 -0500
commit25540c129df70947154a2127ce0451cc80851e02 (patch)
tree5492fde8dfa466b4bdf8bb982a29136700a99cef /ngircd
parenta10a0a3f06f514e4e7968b1b8db37342211979a7 (diff)
Updated irc tasks.
Diffstat (limited to 'ngircd')
-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}}"