Don't remove dependent packages
They might be really wanted on some system (eg. hdparm, dmidecode,…).
This commit is contained in:
parent
7d75c9720c
commit
a8141ae39b
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
* Install dependent packages for fusioninventory-agent.
|
* Install dependent packages for fusioninventory-agent.
|
||||||
|
* Don't remove dependent packages.
|
||||||
* Install fusioninventory-agent package from URL.
|
* Install fusioninventory-agent package from URL.
|
||||||
* Generate agent's configuration file.
|
* Generate agent's configuration file.
|
||||||
* Restart agent's service if needed.
|
* Restart agent's service if needed.
|
||||||
|
|
|
@ -47,6 +47,7 @@ A role to manage FusionInventory agent installation and configuration.
|
||||||
|
|
||||||
This role will :
|
This role will :
|
||||||
* Install needed dependent packages of fusioninventory-agent.
|
* Install needed dependent packages of fusioninventory-agent.
|
||||||
|
* Once installed, the dependencies will not be removed.
|
||||||
* Install fusioninventory-agent package from official project package/URL.
|
* Install fusioninventory-agent package from official project package/URL.
|
||||||
* Generate agent's configuration file.
|
* Generate agent's configuration file.
|
||||||
* Manage agent's systemd service.
|
* Manage agent's systemd service.
|
||||||
|
|
|
@ -4,12 +4,13 @@
|
||||||
# tasks file for fusioninventory
|
# tasks file for fusioninventory
|
||||||
|
|
||||||
# Manage dependent packages [[[1
|
# Manage dependent packages [[[1
|
||||||
- name: Ensure dependent packages are in there desired state
|
- name: Ensure dependent packages are installed
|
||||||
package:
|
package:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
state: 'present'
|
||||||
with_flattened:
|
with_flattened:
|
||||||
- '{{ fusioninventory__agent_depend_packages }}'
|
- '{{ fusioninventory__agent_depend_packages }}'
|
||||||
|
when: fusioninventory__agent_deploy_state == "present"
|
||||||
|
|
||||||
# Manage agent package [[[1
|
# Manage agent package [[[1
|
||||||
- name: Ensure fusioninventory-agent package from URL
|
- name: Ensure fusioninventory-agent package from URL
|
||||||
|
|
Reference in New Issue