Add support limit by host on update-facts script
This commit is contained in:
parent
a6254f2fa5
commit
798013e6d5
1 changed files with 8 additions and 1 deletions
|
@ -3,4 +3,11 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
ANSIBLE_GATHERING=implicit ansible-playbook playbooks/manual/facts.yml
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
limit="all"
|
||||||
|
else
|
||||||
|
limit="$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ANSIBLE_GATHERING=implicit ansible-playbook playbooks/manual/facts.yml -l "$limit"
|
||||||
|
|
Loading…
Add table
Reference in a new issue