Skip to content

Commit 643da91

Browse files
committed
Fix #8: add chdir to ansible command for loaddata
1 parent a2b0bd6 commit 643da91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080

8181
- name: Load data
8282
shell: "{{ manage }} loaddata {{ item }} {{ settings }}"
83+
args:
84+
chdir: "{{ conf.host_path }}"
8385
when: loaddata is defined and loaddata == 'true'
8486
with_items: '{{ conf.data }}'
8587
register: loaddata_results

0 commit comments

Comments
 (0)