Manage tasks with fusioninventory__agent_conf_tasks var
This commit is contained in:
parent
068ded4376
commit
f89a1c4cf3
|
@ -4,6 +4,7 @@
|
|||
* Manage new parameters:
|
||||
* **tag** with fusioninventory__agent_conf_tag variable
|
||||
* **no-task** with fusioninventory__agent_conf_no_task variable
|
||||
* **tasks** with fusioninventory__agent_conf_tasks variable
|
||||
|
||||
## v1.3.1
|
||||
|
||||
|
|
|
@ -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_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_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_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`].
|
||||
|
|
|
@ -96,6 +96,17 @@ fusioninventory__agent_conf_local_dir: ''
|
|||
#
|
||||
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 [[[
|
||||
#
|
||||
|
|
|
@ -33,6 +33,9 @@ local = {{ fusioninventory__agent_conf_local_dir }}
|
|||
no-task = {{ fusioninventory__agent_conf_no_task }}
|
||||
{% endif %}
|
||||
#tasks = inventory,deploy,inventory
|
||||
{% if fusioninventory__agent_conf_tasks %}
|
||||
tasks = {{ fusioninventory__agent_conf_tasks }}
|
||||
{% endif %}
|
||||
|
||||
#
|
||||
# Target scheduling options
|
||||
|
|
Reference in New Issue