This commit is contained in:
Christian Iuga 2020-09-21 17:03:38 +02:00
parent 3eaab13b98
commit e9ed83961e
1 changed files with 7 additions and 1 deletions

View File

@ -82,13 +82,19 @@
notify: ['restart webgui service'] notify: ['restart webgui service']
## Remove all OpenManage packages if requested ## Remove all OpenManage packages if requested
- name: Gather the Package facts
package_facts:
manager: auto
- name: Ensure to remove OpenManage related packages if requested - name: Ensure to remove OpenManage related packages if requested
package: package:
name: 'srvadmin*' name: 'srvadmin*'
state: "absent" state: "absent"
register: pkg_remove_result register: pkg_remove_result
until: pkg_remove_result is success until: pkg_remove_result is success
when: (openmanage__deploy_state == "absent") when:
- (openmanage__deploy_state == "absent")
- "'srvadmin' in ansible_facts.packages"
# Executable [[[1 # Executable [[[1
## Fix some permissions ## Fix some permissions