aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..7b67816
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,28 @@
+- name: Install Postgres
+ apk:
+ name: postgresql
+ update_cache: yes
+- name: Install Runit service directory
+ file:
+ state: directory
+ path: /etc/sv/postgres
+ mode: '0755'
+- name: Install Runit service command
+ template:
+ src: run.j2
+ dest: /etc/sv/postgres/run
+ mode: '755'
+- name: Install supervise symlink
+ file:
+ state: link
+ force: yes
+ src: /run/supervise.postgres
+ dest: /etc/sv/postgres/supervise
+ follow: false
+- name: Enable postgres service
+ file:
+ state: link
+ force: yes
+ src: /etc/sv/postgres
+ dest: /var/service/postgres
+ follow: false