17 lines
479 B
YAML
17 lines
479 B
YAML
|
- block:
|
||
|
|
||
|
- name: Create database password
|
||
|
template:
|
||
|
src: "{{ local_service_home }}/.config/{{ service_user_name }}.template/database.password.j2"
|
||
|
dest: "{{ service_home }}/.config/{{ service_user_name }}/database.password"
|
||
|
mode: 0600
|
||
|
register: database_password_file
|
||
|
|
||
|
- name: Record changes
|
||
|
set_fact:
|
||
|
service_changed: true
|
||
|
when:
|
||
|
database_password_file is changed
|
||
|
|
||
|
become_user: "{{ service_user_name }}"
|