From 25540c129df70947154a2127ce0451cc80851e02 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 15 Jun 2020 23:26:27 -0500 Subject: Updated irc tasks. --- ngircd/tasks/main.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ngircd/tasks') 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}}" -- cgit v1.2.3