ERROR!
"unexpected parameter type in action: class 'ansible.parsing.yaml.objects.AnsibleSequence'"
The error appears to be in '/home/ansible/march/roles/apache/tasks/apt.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- hosts: all
^ here
The playbook(apt.yml) which contains:
---
- hosts: all
become: yes
tasks:
- name: uninstall git
apt:
name: git
state: absent
- name: update
apt:
update-cache: yes