Browse Source

common was missing db admin user pass in default vars.

Thomas Buck 5 years ago
parent
commit
3dc25b1bc9

+ 3
- 0
roles/common/defaults/main.yml View File

9
 secret_name: 'secret'
9
 secret_name: 'secret'
10
 secret: '{{ secret_root + "/" + secret_name }}'
10
 secret: '{{ secret_root + "/" + secret_name }}'
11
 
11
 
12
+db_admin_username: 'postgres'
13
+db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"
14
+
12
 # let's encrypt
15
 # let's encrypt
13
 letsencrypt_server: "https://acme-v01.api.letsencrypt.org/directory"
16
 letsencrypt_server: "https://acme-v01.api.letsencrypt.org/directory"
14
 
17
 

+ 1
- 0
roles/mailserver/defaults/main.yml View File

2
 secret_name: 'secret'
2
 secret_name: 'secret'
3
 secret: '{{ secret_root + "/" + secret_name }}'
3
 secret: '{{ secret_root + "/" + secret_name }}'
4
 
4
 
5
+# must match values in roles/common
5
 db_admin_username: 'postgres'
6
 db_admin_username: 'postgres'
6
 db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"
7
 db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"
7
 
8
 

+ 1
- 1
roles/news/defaults/main.yml View File

12
 # this is the sha512 hash of the desired password
12
 # this is the sha512 hash of the desired password
13
 selfoss_password_hash: "{{ lookup('password', secret + '/' + 'selfoss_password_hash', length=32, crypt='sha512')|hash('sha512') }}"
13
 selfoss_password_hash: "{{ lookup('password', secret + '/' + 'selfoss_password_hash', length=32, crypt='sha512')|hash('sha512') }}"
14
 
14
 
15
-# must match values in roles/mailserver
15
+# must match values in roles/common
16
 db_admin_username: 'postgres'
16
 db_admin_username: 'postgres'
17
 db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"
17
 db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"

Loading…
Cancel
Save