From 973145f88fb48a9650b5254cfd586ae02da3c4f3 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Fri, 26 May 2017 15:39:02 +0200 Subject: [PATCH] Fix unrecognized --limit option Kolla-ansible does not have as its allowed parameters ansible's limit. Change-Id: I86821fe39e6f0f61e513a0677bf177234c203103 Closes-Bug: #1693801 --- tools/kolla-ansible | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/kolla-ansible b/tools/kolla-ansible index c5ebadf4d3..47bae34a1e 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -42,6 +42,7 @@ Options: --tags, -t Only run plays and tasks tagged with these values --extra, -e Set additional variables as key=value or YAML/JSON passed to ansible-playbook --passwords Specify path to the passwords file + --limit Specify host to run plays --verbose, -v Increase verbosity of ansible-playbook Commands: @@ -74,6 +75,7 @@ cat <&2; exit 2; } eval set -- "$ARGS" @@ -165,6 +167,11 @@ while [ "$#" -gt 0 ]; do PASSWORDS_FILE="$2" shift 2 ;; + (--limit) + EXTRA_OPTS="$EXTRA_OPTS --limit $2" + shift 2 + ;; + (--help|-h) usage shift