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

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -

typescript - Typings for sub-folders inside a root index.d.ts -