If desired, remove fusioninventory-agent package
This commit is contained in:
parent
a8141ae39b
commit
8fe580046b
|
@ -4,6 +4,7 @@
|
|||
### Features
|
||||
* Install dependent packages for fusioninventory-agent.
|
||||
* Don't remove dependent packages.
|
||||
* Install fusioninventory-agent package from URL.
|
||||
* Install fusioninventory-agent package from URL or repos.
|
||||
* If desired, remove fusioninventory-agent package.
|
||||
* Generate agent's configuration file.
|
||||
* Restart agent's service if needed.
|
||||
|
|
|
@ -16,14 +16,16 @@
|
|||
- name: Ensure fusioninventory-agent package from URL
|
||||
apt:
|
||||
deb: '{{ fusioninventory__agent_package_url | d(omit) }}'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
||||
when: fusioninventory__agent_package_url != ""
|
||||
and fusioninventory__agent_deploy_state == "present"
|
||||
|
||||
- name: Ensure fusioninventory-agent package from REPOS
|
||||
package:
|
||||
name: 'fusioninventory-agent'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present")
|
||||
else "absent" }}'
|
||||
when: fusioninventory__agent_package_url == ""
|
||||
or fusioninventory__agent_deploy_state == "absent"
|
||||
|
||||
# Manage agent configuration file [[[1
|
||||
- name: Create Fusioninventory-agent configuration
|
||||
|
|
Reference in New Issue