How to return a value from ansible playbook to an shell script? -




i call playbook shell script , example

#!/bin/bash upgrade=`ansible-playbook -i /etc/ansible/hosts checkupgrade.yml` echo " upgrade value $upgrade " 

i want return/set variable checkupgrade.yml, caller script can use further use.

note: don't want write value file





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -