Manage tasks with fusioninventory__agent_conf_tasks var
This commit is contained in:
parent
068ded4376
commit
f89a1c4cf3
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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`].
|
||||||
|
|
|
@ -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 [[[
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in New Issue