Skip to content

Commit

Permalink
Only install pyvmomi if user is root (ansible#31628)
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner authored and samdoran committed Oct 12, 2017
1 parent b68fe2c commit c05a7ad
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/targets/vmware_cluster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_datacenter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_dvswitch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_guest_facts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_guest_find/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_host/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_vm_facts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/vmware_vswitch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
pip:
name: pyvmomi
state: latest
when: "{{ ansible_user_id == 'root' }}"

- name: store the vcenter container ip
set_fact:
Expand Down

0 comments on commit c05a7ad

Please sign in to comment.