fix empty db creation on new installation
This commit is contained in:
parent
20160289e9
commit
f7fb7bcd34
2 changed files with 10 additions and 1 deletions
|
@ -6,7 +6,7 @@ hedy_admin_user: ~
|
|||
hedy_user_username: hedy
|
||||
hedy_user_groupname: hedy
|
||||
hedy_base_path: /home/hedy
|
||||
hedy_data_path: /home/hedy/data
|
||||
hedy_data_path: "{{ hedy_base_path }}/data"
|
||||
|
||||
# Building. Default is to build on the target. To build elsewhere,
|
||||
# change host ('localhost' for Ansible host) and perhaps path.
|
||||
|
|
|
@ -17,6 +17,15 @@
|
|||
- {path: "{{ hedy_data_path }}", when: true}
|
||||
when: "item.when | bool"
|
||||
|
||||
- name: Ensure database file exists before mounting it
|
||||
ansible.builtin.copy:
|
||||
force: false
|
||||
content: ""
|
||||
dest: "{{ hedy_data_path }}/dev_database.json"
|
||||
mode: 0600
|
||||
owner: "{{ hedy_user_username }}"
|
||||
group: "{{ hedy_user_groupname }}"
|
||||
|
||||
- delegate_to: "{{ hedy_builder_host }}"
|
||||
when: "hedy_pull and hedy_container_image_self_build | bool"
|
||||
become: true
|
||||
|
|
Loading…
Reference in a new issue