mirror of
https://github.com/roles-ansible/ansible_collection_pretix.git
synced 2024-10-28 22:01:03 +01:00
32 lines
913 B
YAML
32 lines
913 B
YAML
---
|
|
- name: Create pretix postges user
|
|
become: true
|
|
become_user: postgres
|
|
become_method: community.general.sudosu
|
|
community.postgresql.postgresql_user:
|
|
name: "{{ postgres__user }}"
|
|
password: "{{ postgres__password }}"
|
|
encrypted: true
|
|
|
|
- name: Create pretix database
|
|
become: true
|
|
become_user: postgres
|
|
become_method: community.general.sudosu
|
|
community.postgresql.postgresql_db:
|
|
name: "{{ postgres__database }}"
|
|
encoding: 'UTF-8'
|
|
lc_collate: 'de_DE.UTF-8'
|
|
lc_ctype: 'de_DE.UTF-8'
|
|
locale_provider: 'icu'
|
|
icu_locale: 'de-DE-x-icu'
|
|
template: 'template0'
|
|
|
|
- name: Make sure pretix database is owned by right user
|
|
become: true
|
|
become_user: postgres
|
|
become_method: community.general.sudosu
|
|
community.postgresql.postgresql_user:
|
|
name: "{{ postgres__user }}"
|
|
db: "{{ postgres__database }}"
|
|
password: "{{ postgres__password }}"
|
|
encrypted: true
|