2
0
Fork 0

Manage tasks with fusioninventory__agent_conf_tasks var

This commit is contained in:
Jeremy Gardais 2021-08-27 13:12:25 +02:00
parent 068ded4376
commit f89a1c4cf3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@
* Manage new parameters: * Manage new parameters:
* **tag** with fusioninventory__agent_conf_tag variable * **tag** with fusioninventory__agent_conf_tag variable
* **no-task** with fusioninventory__agent_conf_no_task variable * **no-task** with fusioninventory__agent_conf_no_task variable
* **tasks** with fusioninventory__agent_conf_tasks variable
## v1.3.1 ## v1.3.1

View File

@ -32,6 +32,7 @@ Some variables used to generate FusionInventery agent.cfg file from Ansible temp
* **fusioninventory__agent_conf_server_url**: The URL of your Fusioninventory-server/GLPI/… [default⎵: ``]. * **fusioninventory__agent_conf_server_url**: The URL of your Fusioninventory-server/GLPI/… [default⎵: ``].
* **fusioninventory__agent_conf_local_dir**: Write tasks results in a directory [default⎵: ``]. * **fusioninventory__agent_conf_local_dir**: Write tasks results in a directory [default⎵: ``].
* **fusioninventory__agent_conf_no_task**: Do not run given task (separated by a comma) [default⎵: ``]. * **fusioninventory__agent_conf_no_task**: Do not run given task (separated by a comma) [default⎵: ``].
* **fusioninventory__agent_conf_tasks**: Run given tasks in given order (separated by a comma) [default⎵: ``].
* **fusioninventory__agent_conf_delaytime**: Set an initial delay before the first target [default⎵: `3600`]. * **fusioninventory__agent_conf_delaytime**: Set an initial delay before the first target [default⎵: `3600`].
* **fusioninventory__agent_conf_no_category**: Do not list given category items in inventory task (separated by a comma) [default⎵: ``]. * **fusioninventory__agent_conf_no_category**: Do not list given category items in inventory task (separated by a comma) [default⎵: ``].
* **fusioninventory__agent_conf_scan_homedirs**: Enable the scan of user home directories [default⎵: `False`]. * **fusioninventory__agent_conf_scan_homedirs**: Enable the scan of user home directories [default⎵: `False`].

View File

@ -96,6 +96,17 @@ fusioninventory__agent_conf_local_dir: ''
# #
fusioninventory__agent_conf_no_task: '' fusioninventory__agent_conf_no_task: ''
# ]]]
# .. envvar:: fusioninventory__agent_conf_tasks [[[
#
# Run given tasks in given order.
# Should be a string with comma as a separator between tasks.
#
# ``''``
# Default. Empty so default order is applied.
#
fusioninventory__agent_conf_tasks: ''
# ]]] # ]]]
# .. envvar:: fusioninventory__agent_conf_delaytime [[[ # .. envvar:: fusioninventory__agent_conf_delaytime [[[
# #

View File

@ -33,6 +33,9 @@ local = {{ fusioninventory__agent_conf_local_dir }}
no-task = {{ fusioninventory__agent_conf_no_task }} no-task = {{ fusioninventory__agent_conf_no_task }}
{% endif %} {% endif %}
#tasks = inventory,deploy,inventory #tasks = inventory,deploy,inventory
{% if fusioninventory__agent_conf_tasks %}
tasks = {{ fusioninventory__agent_conf_tasks }}
{% endif %}
# #
# Target scheduling options # Target scheduling options