Commit 6e45eab7 authored by nono's avatar nono 💻
Browse files

Updated become methode to current way

parent 42ab0c20
# {{ ansible_managed }}
[Unit]
Description=HedgeDocs collaborative markdown notes
Documentation=https://github.com/hedgedoc/hedgedoc/
......
......@@ -17,7 +17,8 @@
# role_attr_flags: CREATEDB,NOSUPERUSER
- name: Creation de la base de donnée
sudo_user: postgres
become: true
become_user: postgres
postgresql_db: name={{ hedgedoc_db_name }}
encoding='UTF-8'
lc_collate='en_US.UTF-8'
......@@ -26,7 +27,8 @@
state=present
- name: Creation de l'accès à la base de donnée
sudo_user: postgres
become: true
become_user: postgres
postgresql_user: db={{ hedgedoc_db_name }}
name={{ hedgedoc_db_user }}
password={{ hedgedoc_sql_password }}
......@@ -34,7 +36,8 @@
state=present
- name: Vérification des privilèges sur la base de donnée
sudo_user: postgres
become: true
become_user: postgres
postgresql_user: name={{ hedgedoc_db_user }}
role_attr_flags=NOSUPERUSER,NOCREATEDB
state=pr
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment