2
0
Fork 0

Don't remove dependent packages

They might be really wanted on some system (eg. hdparm, dmidecode,…).
This commit is contained in:
Jeremy Gardais 2018-09-13 10:02:07 +02:00
parent 7d75c9720c
commit a8141ae39b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
### Features
* Install dependent packages for fusioninventory-agent.
* Don't remove dependent packages.
* Install fusioninventory-agent package from URL.
* Generate agent's configuration file.
* Restart agent's service if needed.

View File

@ -47,6 +47,7 @@ A role to manage FusionInventory agent installation and configuration.
This role will:
* Install needed dependent packages of fusioninventory-agent.
* Once installed, the dependencies will not be removed.
* Install fusioninventory-agent package from official project package/URL.
* Generate agent's configuration file.
* Manage agent's systemd service.

View File

@ -4,12 +4,13 @@
# tasks file for fusioninventory
# Manage dependent packages [[[1
- name: Ensure dependent packages are in there desired state
- name: Ensure dependent packages are installed
package:
name: '{{ item }}'
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
state: 'present'
with_flattened:
- '{{ fusioninventory__agent_depend_packages }}'
when: fusioninventory__agent_deploy_state == "present"
# Manage agent package [[[1
- name: Ensure fusioninventory-agent package from URL