geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.34k stars 451 forks source link

Ansible failing to work on fresh Pi install #31

Closed cfjd1317 closed 3 years ago

cfjd1317 commented 3 years ago

Issue..

Running ansible-galaxy collection install -r requirements.yml returns no response...

Then running ansible-playbook main.yml returns:

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/home/pi/Downloads/internet-pi-master/main.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  pre_tasks:
    - name: Load configuration.
      ^ here
bartemyev-inx commented 3 years ago

remove "ansible.builtin." from all the yml files

geerlingguy commented 3 years ago

@bartemyev-inx - That fix is not guaranteed to work with this or future versions of the playbook.

The problem is likely that you're running an outdated version of Ansible. Check with ansible --version—you need to have at least Ansible 2.9 (I installed Ansible 4.0 with pip3 install ansible).