Set "present" state for Dell hardware
This commit is contained in:
parent
5a236e6e30
commit
e3e72be257
|
@ -3,3 +3,4 @@
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
* Add linux.dell.com repo
|
* Add linux.dell.com repo
|
||||||
|
* Set "present" state for Dell hardware
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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" }}'
|
||||||
# ]]]
|
# ]]]
|
||||||
# ]]]
|
# ]]]
|
||||||
|
|
Loading…
Reference in New Issue