2
0
Fork 0

If desired, remove fusioninventory-agent package

This commit is contained in:
Jeremy Gardais 2018-09-13 10:21:44 +02:00
parent a8141ae39b
commit 8fe580046b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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