Merge branch 'roumano-#4' into master

This commit is contained in:
Jeremy Gardais 2020-09-22 09:40:18 +02:00
commit 462d94a3f7
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