From 25a6c3c48a76e6e8c27bc8213e307dd3fafe4074 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:28:23 -0500 Subject: [PATCH] Remove unnessary chmod and chown for db dump (#1667) Based on https://github.com/ansible/awx-operator/pull/1602 Fixes https://github.com/ansible/awx-operator/issues/1590 --- roles/backup/tasks/postgres.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/roles/backup/tasks/postgres.yml b/roles/backup/tasks/postgres.yml index bb1812a0..b885abbf 100644 --- a/roles/backup/tasks/postgres.yml +++ b/roles/backup/tasks/postgres.yml @@ -70,13 +70,6 @@ command: >- touch {{ backup_dir }}/tower.db -- name: Set permissions on file for database dump - k8s_exec: - namespace: "{{ backup_pvc_namespace }}" - pod: "{{ ansible_operator_meta.name }}-db-management" - command: >- - bash -c "chmod 660 {{ backup_dir }}/tower.db && chown :root {{ backup_dir }}/tower.db" - - name: Set full resolvable host name for postgres pod set_fact: resolvable_db_host: '{{ (awx_postgres_type == "managed") | ternary(awx_postgres_host + "." + ansible_operator_meta.namespace + ".svc", awx_postgres_host) }}' # yamllint disable-line rule:line-length