Skip to content

Commit

Permalink
Adding example for add host to groups (ansible#56756)
Browse files Browse the repository at this point in the history
updates the documentation for the virtualbox plugin
  • Loading branch information
Deathice authored and acozine committed May 22, 2019
1 parent 831d3c7 commit 96d2dd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ansible/plugins/inventory/virtualbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
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
Expand Down

0 comments on commit 96d2dd3

Please sign in to comment.