Manage tag with fusioninventory__agent_conf_tag var
This commit is contained in:
		
							parent
							
								
									12775009ae
								
							
						
					
					
						commit
						f40b672121
					
				|  | @ -1,3 +1,8 @@ | |||
| ## v1.X.Y | ||||
| 
 | ||||
| ### Add | ||||
| * Now manage tag with fusioninventory__agent_conf_tag variable. | ||||
| 
 | ||||
| ## v1.3.1 | ||||
| 
 | ||||
| ### Fix | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 [[[ | ||||
| # | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Reference in New Issue