summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian M. Adams <rooftopcellist@gmail.com>2021-01-25 15:52:02 +0100
committerChristian M. Adams <rooftopcellist@gmail.com>2021-01-25 15:52:02 +0100
commite62035fa5ec96947d88c80381dbd39c9bbe4e9e1 (patch)
treea5807404e45825b1c1d10b4165decda76f55ab49
parentMerge pull request #9149 from vladdoster/patch-1 (diff)
downloadawx-e62035fa5ec96947d88c80381dbd39c9bbe4e9e1.tar.xz
awx-e62035fa5ec96947d88c80381dbd39c9bbe4e9e1.zip
Pre-create pgdocker dir ahead of time with proper permissions
-rw-r--r--installer/roles/local_docker/tasks/upgrade_postgres.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/installer/roles/local_docker/tasks/upgrade_postgres.yml b/installer/roles/local_docker/tasks/upgrade_postgres.yml
index d7655d7f75..7887960a57 100644
--- a/installer/roles/local_docker/tasks/upgrade_postgres.yml
+++ b/installer/roles/local_docker/tasks/upgrade_postgres.yml
@@ -1,5 +1,10 @@
---
+- name: Create {{ postgres_data_dir }} directory
+ file:
+ path: "{{ postgres_data_dir }}"
+ state: directory
+
- name: Get full path of postgres data dir
shell: "echo {{ postgres_data_dir }}"
register: fq_postgres_data_dir