summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorjctanner <tanner.jc@gmail.com>2017-10-12 16:20:33 +0200
committerSam Doran <sdoran@ansible.com>2017-10-12 16:20:33 +0200
commitc05a7add5fd4b65ec9e4223b9d7fb729bff3e427 (patch)
treee3f30e5486bfcd7cb5f17615932873fcd391395e /test/integration
parenthighlight dynamic parts of error msg (diff)
downloadansible-c05a7add5fd4b65ec9e4223b9d7fb729bff3e427.tar.xz
ansible-c05a7add5fd4b65ec9e4223b9d7fb729bff3e427.zip
Only install pyvmomi if user is root (#31628)
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/vmware_cluster/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_datacenter/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_dvswitch/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_guest_facts/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_guest_find/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_guest_tools_wait/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_host/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_maintenancemode/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_resource_pool/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_vm_facts/tasks/main.yml1
-rw-r--r--test/integration/targets/vmware_vswitch/tasks/main.yml1
11 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/vmware_cluster/tasks/main.yml b/test/integration/targets/vmware_cluster/tasks/main.yml
index ac7b4307b1..e8747c1632 100644
--- a/test/integration/targets/vmware_cluster/tasks/main.yml
+++ b/test/integration/targets/vmware_cluster/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_datacenter/tasks/main.yml b/test/integration/targets/vmware_datacenter/tasks/main.yml
index 4890c7cd3a..90a47084fd 100644
--- a/test/integration/targets/vmware_datacenter/tasks/main.yml
+++ b/test/integration/targets/vmware_datacenter/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_dvswitch/tasks/main.yml b/test/integration/targets/vmware_dvswitch/tasks/main.yml
index 0058c8c589..92a9fb789e 100644
--- a/test/integration/targets/vmware_dvswitch/tasks/main.yml
+++ b/test/integration/targets/vmware_dvswitch/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_guest_facts/tasks/main.yml b/test/integration/targets/vmware_guest_facts/tasks/main.yml
index 22196a7a90..3e533faa16 100644
--- a/test/integration/targets/vmware_guest_facts/tasks/main.yml
+++ b/test/integration/targets/vmware_guest_facts/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_guest_find/tasks/main.yml b/test/integration/targets/vmware_guest_find/tasks/main.yml
index e89483f000..70dad2ae50 100644
--- a/test/integration/targets/vmware_guest_find/tasks/main.yml
+++ b/test/integration/targets/vmware_guest_find/tasks/main.yml
@@ -6,6 +6,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_guest_tools_wait/tasks/main.yml b/test/integration/targets/vmware_guest_tools_wait/tasks/main.yml
index 05b46c89e0..7c56449a07 100644
--- a/test/integration/targets/vmware_guest_tools_wait/tasks/main.yml
+++ b/test/integration/targets/vmware_guest_tools_wait/tasks/main.yml
@@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_host/tasks/main.yml b/test/integration/targets/vmware_host/tasks/main.yml
index db8456d5ba..59a71789df 100644
--- a/test/integration/targets/vmware_host/tasks/main.yml
+++ b/test/integration/targets/vmware_host/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_maintenancemode/tasks/main.yml b/test/integration/targets/vmware_maintenancemode/tasks/main.yml
index f369fa0da1..efad17e4e4 100644
--- a/test/integration/targets/vmware_maintenancemode/tasks/main.yml
+++ b/test/integration/targets/vmware_maintenancemode/tasks/main.yml
@@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_resource_pool/tasks/main.yml b/test/integration/targets/vmware_resource_pool/tasks/main.yml
index 800ff2b94f..489a8c36ab 100644
--- a/test/integration/targets/vmware_resource_pool/tasks/main.yml
+++ b/test/integration/targets/vmware_resource_pool/tasks/main.yml
@@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_vm_facts/tasks/main.yml b/test/integration/targets/vmware_vm_facts/tasks/main.yml
index ce80f5e0ec..ab374a5c03 100644
--- a/test/integration/targets/vmware_vm_facts/tasks/main.yml
+++ b/test/integration/targets/vmware_vm_facts/tasks/main.yml
@@ -21,6 +21,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact:
diff --git a/test/integration/targets/vmware_vswitch/tasks/main.yml b/test/integration/targets/vmware_vswitch/tasks/main.yml
index b96b90869a..ec000f9c73 100644
--- a/test/integration/targets/vmware_vswitch/tasks/main.yml
+++ b/test/integration/targets/vmware_vswitch/tasks/main.yml
@@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
+ when: "{{ ansible_user_id == 'root' }}"
- name: store the vcenter container ip
set_fact: