1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adding example for add host to groups (#56756)

updates the documentation for the virtualbox plugin
This commit is contained in:
Kevyn Pérez 2019-05-22 13:50:14 -06:00 committed by Alicia Cozine
parent 831d3c7b62
commit 96d2dd3241

View file

@ -44,6 +44,11 @@ simple_config_file:
logged_in_users: /VirtualBox/GuestInfo/OS/LoggedInUsersList
compose:
ansible_connection: ('indows' in vbox_Guest_OS)|ternary('winrm', 'ssh')
# add hosts (all match with minishift vm) to the group container if any of the vms are in ansible_inventory'
plugin: virtualbox
groups:
container: "'minis' in (inventory_hostname)"
'''
import os