pg patch task edit

This commit is contained in:
ByeonJungHun
2023-10-04 16:26:48 +09:00
parent a3d87c96fd
commit f05596f07f
2 changed files with 6 additions and 2 deletions

View File

@@ -4,3 +4,4 @@ roles_path = roles
deprecation_warnings = False
display_skipped_hosts = no
ansible_home = .
stdout_callback = debug

View File

@@ -2,9 +2,11 @@
- 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
register: pod_list
when: kubernetes_role == 'master'
- debug:
msg: "{{ pod_list.stdout_lines }}"
when: kubernetes_role == 'master'
- name: 2. Copy psql file in postgres
kubernetes.core.k8s_cp:
@@ -24,11 +26,12 @@
with_items: "{{ pg_version }}"
when: kubernetes_role == 'master'
- ansible.builtin.debug:
- debug:
msg: |
______ _ _ _ _____ ___ ___ _____ ___
| ___ \| | | | | | / __ \| \/ || _ | / _ \
| |_/ /| | ___ __ _ ___ ___ _ __ ___ ___ | |_ __ _ _ __ | |_ | / \/| . . || | | |/ /_\ \
| __/ | | / _ \ / _` |/ __| / _ \ | '__| / _ \/ __|| __| / _` || '__|| __| | | | |\/| || | | || _ |
| | | || __/| (_| |\__ \| __/ | | | __/\__ \| |_ | (_| || | | |_ | \__/\| | | |\ \_/ /| | | |
\_| |_| \___| \__,_||___/ \___| |_| \___||___/ \__| \__,_||_| \__| \____/\_| |_/ \___/ \_| |_/
\_| |_| \___| \__,_||___/ \___| |_| \___||___/ \__| \__,_||_| \__| \____/\_| |_/ \___/ \_| |_/
when: kubernetes_role == 'master'