Install dependencies packages

This commit is contained in:
Jeremy Gardais 2018-11-26 12:04:12 +01:00
parent c44895f015
commit 94f248080a
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 21 additions and 1 deletions

View File

@ -4,4 +4,5 @@
### Features
* Add linux.dell.com repo
* Set "present" state for Dell hardware
* Install dependencies packages
* Install base packages for all racadm usage

View File

@ -18,6 +18,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__deploy_state**: The desired state this role should achieve. [default for Dell hardware: `present`].
* **openmanage__install_recommends**: If recommended packages should be install. [default: `False`].
* **openmanage__dep_packages**: List of dependencies packages to be able to run racadm [default: `See default/main.yml`].
* **openmanage__base_packages**: List of base packages for all racadm base usage [default: `See default/main.yml`].
## Example Playbook
@ -35,6 +36,7 @@ openmanage__repositories**: List of APT repositories that can provide OpenMan
This role will:
* Add an APT repository in order to provide OpenManage.
* Install dependencies packages.
* Install basic packages for all racadm usage.
## Development

View File

@ -60,6 +60,13 @@ openmanage__deploy_state: '{{ "present"
#
openmanage__install_recommends: False
# ]]]
# .. envvar:: openmanage__dep_packages [[[
#
# Fix some dependencies to be able to run racadm.
#
openmanage__dep_packages:
- 'libargtable2-0'
# ]]]
# .. envvar:: openmanage__base_packages [[[
#
# List of base packages to install.

View File

@ -35,6 +35,16 @@
openmanage__register_key.changed)
# Manage packages [[[1
## Manage depencies packages
- name: Ensure dependencies are present
package:
name: '{{ item }}'
state: "present"
install_recommends: '{{ openmanage__install_recommends | bool }}'
with_flattened:
- '{{ openmanage__dep_packages | to_nice_json }}'
when: (openmanage__deploy_state == "present")
## Manage base system packages
- name: Ensure base packages are in there desired state
package: