Skip to content

Commit

Permalink
update foreman-maintain before stopping services
Browse files Browse the repository at this point in the history
This ensures any possible fixes for process handling are available.
  • Loading branch information
evgeni committed Oct 15, 2024
1 parent a63d040 commit 0eeb3f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/foreman_installer/tasks/upgrade.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 0eeb3f0

Please sign in to comment.