mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
postgresql CI tests: fix timeouts (#598)
* postgresql CI tests: fix timeouts * fix ci_complete
This commit is contained in:
parent
e2bd4b34ed
commit
3cde447eb8
3 changed files with 79 additions and 7 deletions
|
@ -20,11 +20,28 @@
|
|||
name: wal_level
|
||||
value: logical
|
||||
|
||||
- name: postgresql_slot - restart PostgreSQL
|
||||
# To avoid CI timeouts
|
||||
- name: Kill all postgres processes
|
||||
shell: 'pkill -u {{ pg_user }}'
|
||||
become: yes
|
||||
when: ansible_facts.distribution == 'CentOS' and ansible_facts.distribution_major_version == '8'
|
||||
ignore_errors: yes
|
||||
|
||||
- name: postgresql_slot - stop PostgreSQL
|
||||
become: yes
|
||||
service:
|
||||
name: "{{ postgresql_service }}"
|
||||
state: restarted
|
||||
state: stopped
|
||||
|
||||
- name: postgresql_slot - pause between stop and start PostgreSQL
|
||||
pause:
|
||||
seconds: 5
|
||||
|
||||
- name: postgresql_slot - start PostgreSQL
|
||||
become: yes
|
||||
service:
|
||||
name: "{{ postgresql_service }}"
|
||||
state: started
|
||||
|
||||
#
|
||||
# state=present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue