Browse Source

redmine: use .my.cnf for mysql password

uvrrpd
Victor LABORIE 3 years ago
parent
commit
d2c37fe67b
  1. 1
      redmine/tasks/main.yml
  2. 7
      redmine/templates/database.yml.j2

1
redmine/tasks/main.yml

@ -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 }}' }

7
redmine/templates/database.yml.j2

@ -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

Loading…
Cancel
Save