|
|
|
|
@ -102,6 +102,34 @@
|
|
|
|
|
name: postgresql
|
|
|
|
|
state: started
|
|
|
|
|
|
|
|
|
|
- name: "Smardigo Patchday: check if postgres is listing on net internal ip address"
|
|
|
|
|
ansible.builtin.wait_for:
|
|
|
|
|
delay: 15
|
|
|
|
|
timeout: 180
|
|
|
|
|
port: 5432
|
|
|
|
|
host: '{{ stage_server_ip }}'
|
|
|
|
|
register: check_postgres
|
|
|
|
|
|
|
|
|
|
- name: "Smardigo Patchday: restart postgres and check listing on net internal ip address again"
|
|
|
|
|
block:
|
|
|
|
|
|
|
|
|
|
- name: "Smardigo Patchday: stop service(s)"
|
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
|
name: postgresql
|
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
|
|
- name: "Smardigo Patchday: check if postgres is listing on net internal ip address"
|
|
|
|
|
ansible.builtin.wait_for:
|
|
|
|
|
delay: 15
|
|
|
|
|
timeout: 180
|
|
|
|
|
port: 5432
|
|
|
|
|
host: '{{ stage_server_ip }}'
|
|
|
|
|
register: check_postgres
|
|
|
|
|
failed_when: check_postgres_again.failed
|
|
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
- check_postgres.failed
|
|
|
|
|
|
|
|
|
|
- hosts: all,!elastic,!postgres,!k8s_cluster,!gw
|
|
|
|
|
serial: 10
|
|
|
|
|
become: yes
|
|
|
|
|
|