Skip to content

Instantly share code, notes, and snippets.

@juanje
Created Apr 13, 2020
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