ansible-role-golang
ansible-role-golang copied to clipboard
Role fails to run - Error in Verify version
Problem
Failure to run the role using the example playbook in the README.
Error message
TASK [fubarhouse.golang : Go-Lang | Verify version] **************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check '(go_version_string not in go_version_output.stdout) and (\"go version devel\" not in go_version_output.stdout)\n' failed. The error was: error while evaluating conditional ((go_version_string not in go_version_output.stdout) and (\"go version devel\" not in go_version_output.stdout)\n): 'dict object' has no attribute 'stdout'"}
Steps to reproduce
sudo apt install ansible
sudo ansible-galaxy install fubarhouse.golang
echo '- hosts: localhost
roles:
- fubarhouse.golang' > golang.yml
sudo ansible-playbook golang.yml