src.nth.io/

summaryrefslogtreecommitdiff
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
parenta10a0a3f06f514e4e7968b1b8db37342211979a7 (diff)
Updated irc tasks.
-rw-r--r--ngircd/tasks/main.yaml19
-rw-r--r--srht/tasks/main.yaml16
2 files changed, 34 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}}"
diff --git a/srht/tasks/main.yaml b/srht/tasks/main.yaml
new file mode 100644
index 0000000..843ffce
--- /dev/null
+++ b/srht/tasks/main.yaml
@@ -0,0 +1,16 @@
+---
+
+- name: add srht repo keys
+ become: yes
+ apt_key: url="https://mirror.sr.ht/debian/key.asc"
+
+- name: add srht apt repo
+ become: yes
+ apt_repository: repo="deb https://mirror.sr.ht/debian sid main"
+
+- name: install srht
+ become: yes
+ apt:
+ name: "{{item}}"
+ loop:
+ - "python3-hgsrht"