From 454171b5a578f51d62885ed6f8a3dbc9be334089 Mon Sep 17 00:00:00 2001
From: Tony Kay <ankay@redhat.com>
Date: Mon, 17 Feb 2020 23:41:08 +0100
Subject: [PATCH] Work around for oddjobd needing messagebus service restart (#1157)

---
 ansible/configs/three-tier-app/post_software.yml |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/ansible/configs/three-tier-app/post_software.yml b/ansible/configs/three-tier-app/post_software.yml
index b9d822f..925cb50 100644
--- a/ansible/configs/three-tier-app/post_software.yml
+++ b/ansible/configs/three-tier-app/post_software.yml
@@ -12,17 +12,25 @@
   become: yes
   tags:
     - opentlc_bastion_tasks
-  tasks:
-    - import_role:
-        name: "bastion-opentlc-ipa"
-      when: install_ipa_client|bool
 
-    # sssd bug, fixed by restart
-    - name: restart sssd
+  tasks:
+
+    - when: install_ipa_client | bool
+      name: Install IPA Clinet on bastions
+      import_role:
+        name: "bastion-opentlc-ipa"
+
+    - when: install_ipa_client | bool
+      name: Restart IPA related services 
       service:
-        name: sssd
+        name: "{{ service }}"
         state: restarted
-      when: install_ipa_client
+      loop:
+        - sssd              # sssd bug, fixed by restart
+        - messagebus        # oddjobd failing without messagebus restart
+        - oddjobd
+      loop_control:
+        loop_var: service  
 
 - name: PostSoftware flight-check
   hosts: localhost

--
Gitblit v1.9.3