Skip to content

Commit

Permalink
move vcenter name to a var
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Jan 2, 2025
1 parent 8b72b88 commit 18dae9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/targets/prepare_lab/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
- name: Fail If Running On Eco vCenter
ansible.builtin.fail:
msg: This test is very desctuctive and should only be run on Zuul!
when: >-
lookup('ansible.builtin.env', 'VCENTER_HOSTNAME') == "eco-vcenter-server.lab.eng.tlv2.redhat.com"
when: lookup('ansible.builtin.env', 'VCENTER_HOSTNAME') in prepare_lab_restricted_vcenters

- include_tasks: purge_vms.yml
- include_tasks: purge_libraries.yml
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/targets/prepare_lab/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
prepare_lab_restricted_vcenters:
- eco-vcenter-server.lab.eng.tlv2.redhat.com

0 comments on commit 18dae9c

Please sign in to comment.