Skip to content

Instantly share code, notes, and snippets.

@TrafeX
Created January 30, 2017 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TrafeX/122e8c04e793d52f5ececee6bbb78e56 to your computer and use it in GitHub Desktop.
Save TrafeX/122e8c04e793d52f5ececee6bbb78e56 to your computer and use it in GitHub Desktop.
def v2_playbook_on_play_start(self, play):
hosts = play.get_variable_manager()._inventory.get_hosts()
for host in hosts:
pprint(host.get_group_vars()['applicaton.deploy_env'])
pprint(host.get_group_vars())
pprint(host.get_vars())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment