diff options
author | Matt Clay <matt@mystile.com> | 2020-06-17 01:05:13 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-06-17 01:29:25 +0200 |
commit | d295b819203cd9a7876253da96741b526d581357 (patch) | |
tree | 53fed2335228590b2dfcd4fadffbc2e48b198d5f | |
parent | Clarify blockinfile docs for insertafter/insertbefore (#69396) (diff) | |
download | ansible-d295b819203cd9a7876253da96741b526d581357.tar.xz ansible-d295b819203cd9a7876253da96741b526d581357.zip |
Improve stability of postgresql tests.
-rw-r--r-- | test/integration/targets/incidental_setup_postgresql_db/tasks/main.yml | 17 |
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: |