Remove all OpenManage related pkg if requested

This commit is contained in:
Jeremy Gardais 2020-09-17 16:17:05 +02:00
parent 8c02772272
commit 2531667af0
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@
### Enhancements
* Install apt_key only if deploy_state = present.
* Remove all OpenManage related packages if deploy_state = absent.
## v1.1.0

View File

@ -82,6 +82,15 @@
until: pkg_webgui_result is success
notify: ['restart webgui service']
## Remove all OpenManage packages if requested
- name: Ensure to remove OpenManage related packages if requested
package:
name: 'srvadmin*'
state: "absent"
register: pkg_remove_result
until: pkg_remove_result is success
when: (openmanage__deploy_state == "absent")
# Executable [[[1
## Fix some permissions
- name: Ensure Executables can be run