From 173b1554013ec29dd60b701d4d49e1161fed2523 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 4 Jul 2020 11:00:20 -0500 Subject: Got ngircd + atheme services roles working. --- ngircd/tasks/main.yaml | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'ngircd/tasks') diff --git a/ngircd/tasks/main.yaml b/ngircd/tasks/main.yaml index 979deba..d8341f1 100644 --- a/ngircd/tasks/main.yaml +++ b/ngircd/tasks/main.yaml @@ -5,29 +5,11 @@ apt: name="ngircd" notify: restart ngircd -- name: config server name +- name: configure ngircd become: yes - lineinfile: - path: "/etc/ngircd/ngircd.conf" - regexp: '^ Name =' - line: " Name = {{ngircd_name}}" - notify: restart ngircd - -- 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}}" + template: + src: "ngircd.conf.j2" + dest: "/etc/ngircd/ngircd.conf" notify: restart ngircd - name: copy motd file @@ -35,9 +17,8 @@ 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" + systemd: name="ngircd" state="started" enabled="yes" daemon_reload="yes" -- cgit v1.2.3