79301957

Date: 2024-12-23 01:26:44
Score: 0.5
Natty:
Report link

The problem turned out to be the usage of the line connection: ansible.netcommon.network_cli in the playbook. It seems that by having that line, Ansible requires you to specify the ansible_network_os variable.

I've removed the line, set hosts: to all and cleared the /etc/ansible/hosts file and was able to run the playbook remotely as follows ansible-playbook -i 192.168.1.184, setup-raspberrypi.yml --ask-pass.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xPTM1219