diff --git a/CHANGELOG.md b/CHANGELOG.md index caa010a..c38f7df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 8b63589..deb2417 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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