1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Rework on Ansible config, this is now more universal

This commit is contained in:
Yohann D'ANELLO
2020-09-06 10:32:52 +02:00
parent 2a824cadf6
commit 1a28e876b8
10 changed files with 90 additions and 35 deletions

View File

@ -10,17 +10,15 @@
retries: 3
until: pkg_result is succeeded
- name: Install Psycopg2
pip:
name: psycopg2-binary
- name: Create role note
when: "DB_PASSWORD|bool" # If the password is not defined, skip the installation
postgresql_user:
name: note
password: "{{ DB_PASSWORD }}"
become_user: postgres
- name: Create NK20 database
when: "DB_PASSWORD|bool"
postgresql_db:
name: note_db
owner: note