mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
551 B
YAML
19 lines
551 B
YAML
![]()
4 years ago
|
# Test code for the vmware guest contrib inventory
|
||
|
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
|
||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||
|
|
||
|
---
|
||
|
- name: Test VMware guest contrib inventroy script
|
||
|
hosts: localhost
|
||
|
tasks:
|
||
|
- name: store the vcenter container ip
|
||
|
set_fact:
|
||
|
vcsim: "{{ lookup('env', 'VCENTER_HOSTNAME') }}"
|
||
|
|
||
|
- name: Check that groups present in inventory
|
||
|
assert:
|
||
|
that:
|
||
|
- "'{{item}}' in groups"
|
||
|
with_items:
|
||
|
- all
|