redmine: use .my.cnf for mysql password

This commit is contained in:
Victor LABORIE 2018-06-22 10:49:24 +02:00
parent 77b5f84567
commit d2c37fe67b
2 changed files with 4 additions and 4 deletions

View File

@ -194,6 +194,7 @@
option: '{{ item.option }}'
value: '{{ item.value }}'
with_items:
- { option: 'host', value: "{{ redmine_db_host }}" }
- { option: 'user', value: "{{ redmine_db_username }}" }
- { option: 'database', value: "{{ redmine_db_name }}" }
- { option: 'password', value: '{{ redmine_db_pass }}' }

View File

@ -1,7 +1,6 @@
production:
adapter: mysql2
database: {{ redmine_db_name }}
host: {{ redmine_db_host }}
username: {{ redmine_db_username }}
password: "{{ redmine_db_pass }}"
encoding: utf8
username: {{ redmine_db_username }}
default_file: /home/{{ redmine_db_username }}/.my.cnf
default_group: client