Skip to content

Commit

Permalink
Remove unnessary chmod and chown for db dump
Browse files Browse the repository at this point in the history
Based on ansible#1602

Fixes ansible#1590
  • Loading branch information
TheRealHaoLiu committed Dec 13, 2023
1 parent d0c7f34 commit 33b6e35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions roles/backup/tasks/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33b6e35

Please sign in to comment.