summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-06-17 01:05:13 +0200
committerMatt Clay <matt@mystile.com>2020-06-17 01:29:25 +0200
commitd295b819203cd9a7876253da96741b526d581357 (patch)
tree53fed2335228590b2dfcd4fadffbc2e48b198d5f /test/integration
parentClarify blockinfile docs for insertafter/insertbefore (#69396) (diff)
downloadansible-d295b819203cd9a7876253da96741b526d581357.tar.xz
ansible-d295b819203cd9a7876253da96741b526d581357.zip
Improve stability of postgresql tests.
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml b/test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml
index 651f6b3946..2e969c31f6 100644
--- a/test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml
+++ b/test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml
@@ -158,12 +158,19 @@
line: 'postgresql_enable="YES"'
when: ansible_os_family == "FreeBSD"
-- name: start postgresql service
- # work-around for issue on FreeBSD where service won't restart if currently stopped
- service: name={{ postgresql_service }} state=started
+- name: stop postgresql service
+ service:
+ name: "{{ postgresql_service }}"
+ state: stopped
+
+- name: pause between stop and start of postgresql service
+ pause:
+ seconds: 3
-- name: restart postgresql service
- service: name={{ postgresql_service }} state=restarted
+- name: start postgresql service
+ service:
+ name: "{{ postgresql_service }}"
+ state: started
########################
# Setup dummy extension: