From c64e9736a31ee51002facedad4b35af6a9b7a38a Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 5 Apr 2019 16:44:09 -0700 Subject: [PATCH] [stable-2.6] Start dbus when setting up postgresql tests. (cherry picked from commit c309570540) Co-authored-by: Matt Clay --- test/integration/targets/setup_postgresql_db/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/targets/setup_postgresql_db/tasks/main.yml b/test/integration/targets/setup_postgresql_db/tasks/main.yml index 2a08b7a975..6576071f7d 100644 --- a/test/integration/targets/setup_postgresql_db/tasks/main.yml +++ b/test/integration/targets/setup_postgresql_db/tasks/main.yml @@ -17,6 +17,12 @@ - 'default{{ python_suffix }}.yml' paths: '../vars' +- name: make sure the dbus service is started under systemd + systemd: + name: dbus + state: started + when: ansible_service_mgr == 'systemd' and ansible_distribution == 'Fedora' + # Make sure we start fresh - name: stop postgresql service service: name={{ postgresql_service }} state=stopped