Improve stability of postgresql tests.
This commit is contained in:
parent
fc448ea54f
commit
d295b81920
1 changed files with 12 additions and 5 deletions
|
@ -158,12 +158,19 @@
|
||||||
line: 'postgresql_enable="YES"'
|
line: 'postgresql_enable="YES"'
|
||||||
when: ansible_os_family == "FreeBSD"
|
when: ansible_os_family == "FreeBSD"
|
||||||
|
|
||||||
- name: start postgresql service
|
- name: stop postgresql service
|
||||||
# work-around for issue on FreeBSD where service won't restart if currently stopped
|
service:
|
||||||
service: name={{ postgresql_service }} state=started
|
name: "{{ postgresql_service }}"
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: restart postgresql service
|
- name: pause between stop and start of postgresql service
|
||||||
service: name={{ postgresql_service }} state=restarted
|
pause:
|
||||||
|
seconds: 3
|
||||||
|
|
||||||
|
- name: start postgresql service
|
||||||
|
service:
|
||||||
|
name: "{{ postgresql_service }}"
|
||||||
|
state: started
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Setup dummy extension:
|
# Setup dummy extension:
|
||||||
|
|
Loading…
Reference in a new issue