Skip to content

Instantly share code, notes, and snippets.

@juanje
Created April 13, 2020 15:49
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 juanje/f262993d7d29e1ef250076aad40a0ddb to your computer and use it in GitHub Desktop.
Save juanje/f262993d7d29e1ef250076aad40a0ddb to your computer and use it in GitHub Desktop.
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