aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
blob: 7b6781680b794177181ccb6da0ed953882fe54df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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