Skip to content

Commit fc1e5c2

Browse files
authored
Merge pull request #25 from galaxyproject/mkdir
Create folder if it is local
2 parents 1507fbe + 4406188 commit fc1e5c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tasks/backup.yml

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
- "{{ postgresql_backup_local_dir }}/bin"
1313
- "{{ postgresql_backup_active_dir }}"
1414

15+
- name: Create backup output directory
16+
file:
17+
owner: postgres
18+
group: postgres
19+
mode: 0750
20+
state: directory
21+
path: "{{ postgresql_backup_dir }}"
22+
when: postgresql_backup_dir[0] == '/'
23+
1524
- name: Install backup scripts
1625
template:
1726
src: "{{ item }}.j2"

0 commit comments

Comments
 (0)