Tony Kay
2020-02-17 454171b5a578f51d62885ed6f8a3dbc9be334089
Work around for oddjobd needing messagebus service restart (#1157)

1 files modified
24 ■■■■■ changed files
ansible/configs/three-tier-app/post_software.yml 24 ●●●●● patch | view | raw | blame | history
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