Skip to content

Instantly share code, notes, and snippets.

@dhilst
Last active November 27, 2020 19:51
Show Gist options
  • Save dhilst/cc0da61f35fb67985622eb9580c2b68a to your computer and use it in GitHub Desktop.
Save dhilst/cc0da61f35fb67985622eb9580c2b68a to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Wrapper over ansible include tasks to make simple executable playbooks
# example https://gist.github.com/e39284344e3fd29b3202571678b6a343
task="${PWD}/$1"
ansible localhost -m include_tasks -a file=$task -c local -i /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment