Answer the question
In order to leave comments, you need to log in
How to pass data to .yaml in shell script?
There is a deploy.sh script.
Depending on the arguments passed to it, it can form different conditions that must be passed to .yaml
For example:
export DEBUG=""
while test $# -gt 0
do
case "$1" in
--debug) DEBUG="-p 5858:5858"
;;
esac
shift
done
ansible-playbook deploy/deploy.yaml
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question