I installed the latest version of Ubuntu on my Windows 10 and I am trying to run a playbook:
--- - name: "My first play" hosts: localhost tasks: - name: "test reachability" ping: - name: "install stress" homebrew: name: stress state: present
But I get this error on the second task:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to find required executable brew in paths: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}PLAY RECAP *************************************************************************************************************localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
How can I solve this error?