pg patch task edit
This commit is contained in:
@@ -4,3 +4,4 @@ roles_path = roles
|
|||||||
deprecation_warnings = False
|
deprecation_warnings = False
|
||||||
display_skipped_hosts = no
|
display_skipped_hosts = no
|
||||||
ansible_home = .
|
ansible_home = .
|
||||||
|
stdout_callback = debug
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
- name: 1. Get a list of all pods from the namespace
|
- name: 1. Get a list of all pods from the namespace
|
||||||
shell: kubectl -n "{{ cmoa_namespace }}" get pods --no-headers -o custom-columns=":metadata.name" |grep postgres
|
shell: kubectl -n "{{ cmoa_namespace }}" get pods --no-headers -o custom-columns=":metadata.name" |grep postgres
|
||||||
register: pod_list
|
register: pod_list
|
||||||
|
when: kubernetes_role == 'master'
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: "{{ pod_list.stdout_lines }}"
|
msg: "{{ pod_list.stdout_lines }}"
|
||||||
|
when: kubernetes_role == 'master'
|
||||||
|
|
||||||
- name: 2. Copy psql file in postgres
|
- name: 2. Copy psql file in postgres
|
||||||
kubernetes.core.k8s_cp:
|
kubernetes.core.k8s_cp:
|
||||||
@@ -24,7 +26,7 @@
|
|||||||
with_items: "{{ pg_version }}"
|
with_items: "{{ pg_version }}"
|
||||||
when: kubernetes_role == 'master'
|
when: kubernetes_role == 'master'
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
- debug:
|
||||||
msg: |
|
msg: |
|
||||||
______ _ _ _ _____ ___ ___ _____ ___
|
______ _ _ _ _____ ___ ___ _____ ___
|
||||||
| ___ \| | | | | | / __ \| \/ || _ | / _ \
|
| ___ \| | | | | | / __ \| \/ || _ | / _ \
|
||||||
@@ -32,3 +34,4 @@
|
|||||||
| __/ | | / _ \ / _` |/ __| / _ \ | '__| / _ \/ __|| __| / _` || '__|| __| | | | |\/| || | | || _ |
|
| __/ | | / _ \ / _` |/ __| / _ \ | '__| / _ \/ __|| __| / _` || '__|| __| | | | |\/| || | | || _ |
|
||||||
| | | || __/| (_| |\__ \| __/ | | | __/\__ \| |_ | (_| || | | |_ | \__/\| | | |\ \_/ /| | | |
|
| | | || __/| (_| |\__ \| __/ | | | __/\__ \| |_ | (_| || | | |_ | \__/\| | | |\ \_/ /| | | |
|
||||||
\_| |_| \___| \__,_||___/ \___| |_| \___||___/ \__| \__,_||_| \__| \____/\_| |_/ \___/ \_| |_/
|
\_| |_| \___| \__,_||___/ \___| |_| \___||___/ \__| \__,_||_| \__| \____/\_| |_/ \___/ \_| |_/
|
||||||
|
when: kubernetes_role == 'master'
|
||||||
|
|||||||
Reference in New Issue
Block a user