Create the task and add the host for prometheus
							parent
							
								
									f65b31fd87
								
							
						
					
					
						commit
						363556e6e2
					
				
							
								
								
									
										1
									
								
								hosts
								
								
								
								
							
							
						
						
									
										1
									
								
								hosts
								
								
								
								
							|  | @ -10,6 +10,7 @@ | |||
| [crans-container] | ||||
| 
 | ||||
| [crans-vm] | ||||
| prometheus.adm.crans.org | ||||
| 
 | ||||
| [ovh-server] | ||||
| 
 | ||||
|  |  | |||
|  | @ -0,0 +1,6 @@ | |||
| --- | ||||
| # Playbook for monitoring | ||||
| 
 | ||||
| - hosts: prometheus.adm.crans.org | ||||
|   roles: | ||||
|     - prometheus | ||||
|  | @ -0,0 +1,9 @@ | |||
| --- | ||||
| 
 | ||||
| - name: Instal Prometheus | ||||
|   apt: | ||||
|     update_cache: true | ||||
|     name: prometheus   | ||||
|   register: apt_result | ||||
|   retries: 3 | ||||
|   until: apt_result is succeeded  | ||||
		Loading…
	
		Reference in New Issue
	
	 grizzly
						grizzly