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
Post a Comment