Added ngircd.
authorLuke Hoersten <luke@hoersten.org>
Sun, 14 Jun 2020 11:40:43 -0500
changeset 43 b86f3fc9fb6f
parent 42 edb53dfadfb5
child 44 aaf10cecfc1f
Added ngircd.
aws-s3-backup/tasks/main.yaml
matrix-synapse/tasks/main.yaml
ngircd/handlers/main.yaml
ngircd/tasks/main.yaml
postgresql/defaults/main.yaml
rpi-base/defaults/main.yaml
--- a/aws-s3-backup/tasks/main.yaml	Sat Jun 13 14:58:31 2020 -0500
+++ b/aws-s3-backup/tasks/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -2,7 +2,7 @@
 
 - name: apt install pip
   become: yes
-  apt: name="python-pip"
+  apt: name="python3-pip"
 
 - name: pip install aws cli packages
   become: yes
--- a/matrix-synapse/tasks/main.yaml	Sat Jun 13 14:58:31 2020 -0500
+++ b/matrix-synapse/tasks/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -21,6 +21,26 @@
     default_release: "buster-backports"
   notify: restart matrix synapse service
 
+- name: create log file
+  become: yes
+  file:
+    path: "/var/log/matrix-synapse/homeserver.log"
+    owner: "matrix-synapse"
+    group: "root"
+    state: "touch"
+    mode: "0644"
+  changed_when: false
+
+- name: create media data dir
+  become: yes
+  file:
+    path: "{{matrix_synapse_media_store}}"
+    owner: "matrix-synapse"
+    group: "root"
+    state: "directory"
+    recurse: yes
+    mode: "0750"
+
 - name: configure matrix synapse
   become: yes
   template:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ngircd/handlers/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -0,0 +1,5 @@
+---
+
+- name: restart ngircd
+  become: yes
+  systemd: name="ngircd" state="restarted" daemon_reload="yes"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ngircd/tasks/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -0,0 +1,26 @@
+---
+
+- name: apt install ngircd
+  become: yes
+  apt: name="ngircd"
+  notify: restart ngircd
+
+- name: config server name
+  become: yes
+  lineinfile:
+    path: "/etc/ngircd/ngircd.conf"
+    regexp: '^	Name ='
+    line: "	Name = {{ngircd_name}}"
+  notify: restart ngircd
+
+- name: set motd
+  become: yes
+  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"
--- a/postgresql/defaults/main.yaml	Sat Jun 13 14:58:31 2020 -0500
+++ b/postgresql/defaults/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -1,6 +1,6 @@
 ---
 
-postgresql_version: "11"
+postgresql_version: "12"
 postgresql_config_path: "/etc/postgresql/{{postgresql_version}}/main/postgresql.conf"
 postgresql_data_dir: "/var/lib/postgresql/{{postgresql_version}}/main"
 postgresql_apt_packages:
--- a/rpi-base/defaults/main.yaml	Sat Jun 13 14:58:31 2020 -0500
+++ b/rpi-base/defaults/main.yaml	Sun Jun 14 11:40:43 2020 -0500
@@ -13,3 +13,5 @@
   - "jq"
   - "tree"
   - "iperf3"
+  - "python3-pip"
+  - "unzip"