Skip to content
Snippets Groups Projects
Commit 2bd896e3 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Pass extra variables through kolla-ansible to ansible-playbook"

parents a8e78881 25393eb2
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ Options: ...@@ -34,6 +34,7 @@ Options:
--keyfile, -k <key_file> Specify path to ansible vault keyfile --keyfile, -k <key_file> Specify path to ansible vault keyfile
--help, -h Show this usage information --help, -h Show this usage information
--tags, -t <tags> Only run plays and tasks tagged with these values --tags, -t <tags> Only run plays and tasks tagged with these values
--extra, -e <ansible variables> Set additional variables as key=value or YAML/JSON passed to ansible-playbook
--verbose, -v Increase verbosity of ansible-playbook --verbose, -v Increase verbosity of ansible-playbook
Commands: Commands:
...@@ -48,8 +49,8 @@ EOF ...@@ -48,8 +49,8 @@ EOF
} }
SHORT_OPTS="hi:p:t:k:v" SHORT_OPTS="hi:p:t:k:e:v"
LONG_OPTS="help,inventory:,playbook:,tags:,keyfile:,verbose,configdir:" LONG_OPTS="help,inventory:,playbook:,tags:,keyfile:,extra:,verbose,configdir:"
ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; } ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; }
eval set -- "$ARGS" eval set -- "$ARGS"
...@@ -96,6 +97,11 @@ while [ "$#" -gt 0 ]; do ...@@ -96,6 +97,11 @@ while [ "$#" -gt 0 ]; do
shift 2 shift 2
;; ;;
(--extra|-e)
EXTRA_OPTS="$EXTRA_OPTS -e $2"
shift 2
;;
(--help|-h) (--help|-h)
usage usage
shift shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment