Set "present" state for Dell hardware

This commit is contained in:
Jeremy Gardais 2018-11-23 16:37:21 +01:00
parent 5a236e6e30
commit e3e72be257
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 6 additions and 3 deletions

View File

@ -3,3 +3,4 @@
### Features ### Features
* Add linux.dell.com repo * Add linux.dell.com repo
* Set "present" state for Dell hardware

View File

@ -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__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__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 ## Example Playbook

View File

@ -40,11 +40,13 @@ openmanage__repositories:
# What is the desired state which this role should achieve? Possible options: # What is the desired state which this role should achieve? Possible options:
# #
# ``present`` # ``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`` # ``absent``
# Ensure that openmanage is uninstalled and it's configuration is removed. # 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" }}'
# ]]] # ]]]
# ]]] # ]]]