diff --git a/CHANGELOG.md b/CHANGELOG.md index 329f6f0..fdcdcb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index e825f02..cbecfc4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml index e098dc4..744e52b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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. diff --git a/tasks/main.yml b/tasks/main.yml index 9002fa5..10ffd9b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -35,7 +35,17 @@ openmanage__register_key.changed) # Manage packages [[[1 -## Manage base system packages +## 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: name: '{{ item }}'