Skip to content

Instantly share code, notes, and snippets.

@juanje
Created April 13, 2020 15:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Passing parammeters to ansible-playbook in a shellscript
#!/bin/bash
# This is a small test to check how to pass some parameters with
# special characters (!) to avoid shell calls, to ansible-playbook.
_except='!dell10,!dell19'
ansible-playbook -l "${_except}" bootstrap.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment