2
0
Fork 0

Manage tag with fusioninventory__agent_conf_tag var

This commit is contained in:
Jeremy Gardais 2021-08-26 15:58:17 +02:00
parent 12775009ae
commit f40b672121
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
## v1.X.Y
### Add
* Now manage tag with fusioninventory__agent_conf_tag variable.
## v1.3.1
### Fix

View File

@ -40,6 +40,7 @@ Some variables used to generate FusionInventery agent.cfg file from Ansible temp
* **fusioninventory__agent_conf_httpd_ip**: Interface/IP, the webserver server should listen to [default⎵: ``].
* **fusioninventory__agent_conf_httpd_port**: TCP port used by the webserver server to listen [default⎵: `62354`].
* **fusioninventory__agent_conf_httpd_trust**: hostname or IP or subnet authorized for http request [default⎵: ``].
* **fusioninventory__agent_conf_tag**: Add given tag to inventory results [default⎵: ``].
* **fusioninventory__agent_conf_debug**: If debug mode should be enabled [default⎵: `False`].
## Example Playbook

View File

@ -181,6 +181,16 @@ fusioninventory__agent_conf_httpd_port: '62354'
# Default.
#
fusioninventory__agent_conf_httpd_trust: ''
# ]]]
# .. envvar:: fusioninventory__agent_conf_tag [[[
#
# Add given tag to inventory results
#
# ``''``
# Default. Empty so results are send without any tag.
#
fusioninventory__agent_conf_tag: ''
# ]]]
# .. envvar:: fusioninventory__agent_conf_debug [[[
#

View File

@ -141,7 +141,7 @@ color = 0
#
# add given tag to inventory results
tag =
tag = {{ fusioninventory__agent_conf_tag }}
{% if fusioninventory__agent_conf_debug %}
# enable debug mode
debug = 1