mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
postgresql CI tests: fix timeouts (#598)
* postgresql CI tests: fix timeouts * fix ci_complete
This commit is contained in:
@@ -61,11 +61,28 @@
|
||||
name: track_functions
|
||||
value: all
|
||||
|
||||
- name: 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: Stop PostgreSQL
|
||||
become: yes
|
||||
service:
|
||||
name: "{{ postgresql_service }}"
|
||||
state: restarted
|
||||
state: stopped
|
||||
|
||||
- name: Pause between stop and start PosgreSQL
|
||||
pause:
|
||||
seconds: 5
|
||||
|
||||
- name: Start PostgreSQL
|
||||
become: yes
|
||||
service:
|
||||
name: "{{ postgresql_service }}"
|
||||
state: started
|
||||
|
||||
- name: Create test functions
|
||||
<<: *task_parameters
|
||||
|
||||
Reference in New Issue
Block a user