Skip to content
Snippets Groups Projects
Commit f38b9801 authored by ynerant's avatar ynerant
Browse files

Merge branch 'fix-ansible' into 'master'

Fix ansible

See merge request !87
parents e50bff8e 43a22cbe
No related branches found
No related tags found
1 merge request!87Fix ansible
Pipeline #8304 passed with stages
in 4 minutes and 23 seconds
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
--- ---
- hosts: bde-nk20-beta.adh.crans.org - hosts: bde-nk20-beta.adh.crans.org
vars_prompt:
- name: DB_PASSWORD
prompt: "Password of the database"
private: yes
roles: roles:
- 1-apt-basic - 1-apt-basic
- 2-nk20 - 2-nk20
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
- name: Create role note - name: Create role note
postgresql_user: postgresql_user:
name: note name: note
password: "CHANGE_ME" password: "{{ DB_PASSWORD }}"
become_user: postgres become_user: postgres
- name: Create NK20 database - name: Create NK20 database
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
command: /var/www/note_kfet/env/bin/python manage.py migrate command: /var/www/note_kfet/env/bin/python manage.py migrate
args: args:
chdir: /var/www/note_kfet chdir: /var/www/note_kfet
become_user: www-data become_user: postgres
- name: Compile messages - name: Compile messages
command: /var/www/note_kfet/env/bin/python manage.py compilemessages command: /var/www/note_kfet/env/bin/python manage.py compilemessages
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
command: /var/www/note_kfet/env/bin/python manage.py loaddata initial command: /var/www/note_kfet/env/bin/python manage.py loaddata initial
args: args:
chdir: /var/www/note_kfet chdir: /var/www/note_kfet
become_user: www-data become_user: postgres
Subproject commit dd8b48c31d4501d95b3afb00ac9b387397fca957 Subproject commit e16629cc70c155e4d32244f80684295b459a8a59
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment