summaryrefslogtreecommitdiff
path: root/test/integration/targets/vmware_host
diff options
context:
space:
mode:
authorjctanner <tanner.jc@gmail.com>2017-10-12 10:20:33 -0400
committerSam Doran <sdoran@ansible.com>2017-10-12 10:20:33 -0400
commitc05a7add5fd4b65ec9e4223b9d7fb729bff3e427 (patch)
treee3f30e5486bfcd7cb5f17615932873fcd391395e /test/integration/targets/vmware_host
parentb68fe2cd2359bc675087da786fb7028388aafe59 (diff)
downloadansible-c05a7add5fd4b65ec9e4223b9d7fb729bff3e427.tar.gz
Only install pyvmomi if user is root (#31628)
Diffstat (limited to 'test/integration/targets/vmware_host')
-rw-r--r--test/integration/targets/vmware_host/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
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: