Bug #9115
opennon-interactive mode for version reporting now working when using ansible
0%
Description
I am unable to get the --version command to work in a non-interactive shell. I am using Ansible to download and install -> compile chirp. It would be great to be able to detect the version number for comparison with the LATEST download available. I have tried a few different times/ways to report the version to no avail, is there another way to report the version number in my use case?
Thanks
ok: [localhost] => {
"msg": {
"changed": false,
"cmd": "python /usr/local/bin/chirpw --version",
"delta": "0:00:01.119130",
"end": "2021-06-06 20:32:17.009644",
"failed": false,
"failed_when_result": false,
"msg": "non-zero return code",
"rc": 1,
"start": "2021-06-06 20:32:15.890514",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
}
ok: [localhost] => {
"msg": {
"changed": false,
"cmd": "/usr/local/bin/chirpw --version",
"delta": "0:00:01.114501",
"end": "2021-06-06 20:53:35.871207",
"failed": false,
"failed_when_result": false,
"msg": "non-zero return code",
"rc": 1,
"start": "2021-06-06 20:53:34.756706",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
}