diff --git a/roles/restore/tasks/postgres.yml b/roles/restore/tasks/postgres.yml index 8c10c1b7..7f0753ec 100644 --- a/roles/restore/tasks/postgres.yml +++ b/roles/restore/tasks/postgres.yml @@ -50,7 +50,7 @@ k8s_info: api_version: apps/v1 kind: Deployment - name: "{{ ansible_operator_meta.namespace }}-task" + name: "{{ deployment_name }}-task" namespace: "{{ ansible_operator_meta.namespace }}" register: this_deployment @@ -63,8 +63,8 @@ replicas: 0 wait: yes loop: - - "{{ ansible_operator_meta.name }}-task" - - "{{ ansible_operator_meta.name }}-web" + - "{{ deployment_name }}-task" + - "{{ deployment_name }}-web" when: this_deployment['resources'] | length - name: Set full resolvable host name for postgres pod