diff options
| author | Zuul <zuul@review.openstack.org> | 2017-10-19 20:41:58 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-10-19 20:41:58 +0000 |
| commit | e2301f071717deb2a708c416cea8549dbdc07b02 (patch) | |
| tree | 79735c98b07087654dc5bf4a67ec01e7d18e425b /tools | |
| parent | fa761a21f8163a4f8cbfca39a7d5c53b14c5e6e3 (diff) | |
| parent | c3e91725e25b4e7483bc99edc3f517eef798eb0a (diff) | |
| download | kolla-ansible-e2301f071717deb2a708c416cea8549dbdc07b02.tar.gz kolla-ansible-e2301f071717deb2a708c416cea8549dbdc07b02.zip | |
Merge "Add support for --skip-tags argument"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/kolla-ansible | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 8c2bd3cd7..72d8e86c8 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -40,6 +40,7 @@ Options: --key -k <key_path> Specify path to ansible vault keyfile --help, -h Show this usage information --tags, -t <tags> Only run plays and tasks tagged with these values + --skip-tags <tags> Only run plays and tasks whose tags do not match these values --extra, -e <ansible variables> Set additional variables as key=value or YAML/JSON passed to ansible-playbook --passwords <passwords_path> Specify path to the passwords file --limit <host> Specify host to run plays @@ -76,6 +77,7 @@ cat <<EOF --configdir --key -k --help -h +--skip-tags --tags -t --extra -e --passwords @@ -103,7 +105,7 @@ EOF } SHORT_OPTS="hi:p:t:k:e:v" -LONG_OPTS="help,inventory:,playbook:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev" +LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev" ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; } eval set -- "$ARGS" @@ -136,6 +138,11 @@ while [ "$#" -gt 0 ]; do shift 2 ;; + (--skip-tags) + EXTRA_OPTS="$EXTRA_OPTS --skip-tags $2" + shift 2 + ;; + (--tags|-t) EXTRA_OPTS="$EXTRA_OPTS --tags $2" shift 2 |
