diff --git a/CHANGELOG.md b/CHANGELOG.md index 187b429..56ac16f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,4 @@ ### Features * Add linux.dell.com repo +* Set "present" state for Dell hardware diff --git a/README.md b/README.md index feb824c..fb5df1c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A role to manage Openmanage installation and configuration. * ** openmanage__repositories** : List of APT repositories that can provide OpenManage. Each entry is a dict [default : `See default/main.yml`]. * **openmanage__base_packages** : List of base packages in order to provide Openmanage [default : `openmanage`]. -* **openmanage__deploy_state** : The desired state this role should achieve. [default : `absent`]. +* **openmanage__deploy_state** : The desired state this role should achieve. [default for Dell hardware : `present`]. ## Example Playbook diff --git a/defaults/main.yml b/defaults/main.yml index 4ba6829..b6743bb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -40,11 +40,13 @@ openmanage__repositories: # What is the desired state which this role should achieve ? Possible options : # # ``present`` -# Default. Ensure that openmanage is installed and configured as requested. +# Default for DELL hardware. Ensure that openmanage is installed and configured as requested. # # ``absent`` # Ensure that openmanage is uninstalled and it's configuration is removed. # -openmanage__deploy_state: 'absent' +openmanage__deploy_state: '{{ "present" + if (ansible_system_vendor is search("Dell")) + else "absent" }}' # ]]] # ]]]