diff --git a/roles/foreman_installer/tasks/upgrade.yml b/roles/foreman_installer/tasks/upgrade.yml index 83f6f7dd3..25ec6351e 100644 --- a/roles/foreman_installer/tasks/upgrade.yml +++ b/roles/foreman_installer/tasks/upgrade.yml @@ -1,4 +1,12 @@ --- +- name: 'Update foreman-maintain' + package: + name: rubygem-foreman_maintain + state: latest + when: + - foreman_installer_scenario != 'foreman' + - ansible_os_family == 'RedHat' + - name: 'Stop services' command: foreman-maintain service stop when: foreman_installer_scenario != 'foreman'