Manage no-task with fusioninventory__agent_conf_no_task var
This commit is contained in:
		
							parent
							
								
									880b2cd427
								
							
						
					
					
						commit
						068ded4376
					
				|  | @ -1,7 +1,9 @@ | |||
| ## v1.X.Y | ||||
| 
 | ||||
| ### Add | ||||
| * Now manage tag with fusioninventory__agent_conf_tag variable. | ||||
| * Manage new parameters: | ||||
|   * **tag** with fusioninventory__agent_conf_tag variable | ||||
|   * **no-task** with fusioninventory__agent_conf_no_task variable | ||||
| 
 | ||||
| ## v1.3.1 | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,6 +31,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_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`]. | ||||
|  |  | |||
|  | @ -85,6 +85,17 @@ fusioninventory__agent_conf_server_url: '' | |||
| # | ||||
| fusioninventory__agent_conf_local_dir: '' | ||||
| 
 | ||||
|                                                                    # ]]] | ||||
| # .. envvar:: fusioninventory__agent_conf_no_task [[[ | ||||
| # | ||||
| # Do not run given task. | ||||
| # Should be a string with comma as a separator between tasks. | ||||
| # | ||||
| # ``''`` | ||||
| #   Default. Empty so all tasks are runned. | ||||
| # | ||||
| fusioninventory__agent_conf_no_task: '' | ||||
| 
 | ||||
|                                                                    # ]]] | ||||
| # .. envvar:: fusioninventory__agent_conf_delaytime [[[ | ||||
| # | ||||
|  | @ -98,6 +109,9 @@ fusioninventory__agent_conf_delaytime: '3600' | |||
| # Do not list given category items in inventory task. | ||||
| # Should be a string with comma as a separator between categories. | ||||
| # | ||||
| # ``''`` | ||||
| #   Default. Empty so all categories are listed. | ||||
| # | ||||
| fusioninventory__agent_conf_no_category: '' | ||||
| 
 | ||||
|                                                                    # ]]] | ||||
|  |  | |||
|  | @ -29,6 +29,9 @@ local = {{ fusioninventory__agent_conf_local_dir }} | |||
| 
 | ||||
| # disable software deployment tasks | ||||
| #no-task = deploy | ||||
| {% if fusioninventory__agent_conf_no_task %} | ||||
| no-task = {{ fusioninventory__agent_conf_no_task }} | ||||
| {% endif %} | ||||
| #tasks = inventory,deploy,inventory | ||||
| 
 | ||||
| # | ||||
|  |  | |||
		Reference in New Issue