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:
parent
831d3c7b62
commit
96d2dd3241
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue