aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/tasks/database.yml
blob: 601ee9d8d3d374c188607ee286732f09a2606655 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---

- name: create nextcloud database
  community.postgresql.postgresql_db:
    name: "{{ nextcloud__db_name }}"
    encoding: UTF-8

- name: create nextcloud database user
  community.postgresql.postgresql_user:
    db: "{{ nextcloud__db_name }}"
    name: "{{ nextcloud__db_user }}"
    password: "{{ nextcloud__db_password }}"

- name: add nextcloud db user permissions
  community.postgresql.postgresql_schema:
    db: "{{ nextcloud__db_name }}"
    name: "{{ nextcloud__db_user }}"
    owner: "{{ nextcloud__db_user }}"
remember that computers suck.