Created
April 13, 2020 15:49
-
-
Save juanje/f262993d7d29e1ef250076aad40a0ddb to your computer and use it in GitHub Desktop.
Passing parammeters to ansible-playbook in a shellscript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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