mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-24 21:14:00 -07:00 
			
		
		
		
	Only install pyvmomi if user is root (#31628)
This commit is contained in:
		
					parent
					
						
							
								b68fe2cd23
							
						
					
				
			
			
				commit
				
					
						c05a7add5f
					
				
			
		
					 11 changed files with 11 additions and 0 deletions
				
			
		|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -6,6 +6,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -7,6 +7,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -7,6 +7,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -21,6 +21,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
|  | @ -7,6 +7,7 @@ | |||
|   pip: | ||||
|     name: pyvmomi | ||||
|     state: latest | ||||
|   when: "{{ ansible_user_id == 'root' }}" | ||||
| 
 | ||||
| - name: store the vcenter container ip | ||||
|   set_fact: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue