what's wrong with this? ---- hosts: db tasks: - file: - path: /home/ansible/cloning - state: directory name: "create directory" It gives an error:ERROR! unexpected parameter type in action: <class 'ansible.parsing.yaml.objects.AnsibleSequence'>The error appears to have been in '/home/ansible/playbooks/clone.yml': line 4, column 7, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be: tasks: - file: ^ hereThe error appears to have been in '/home/ansible/playbooks/clone.yml': line 4, column 7, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be: tasks: - file: ^ hereexception type: <class 'ansible.errors.AnsibleParserError'>exception: unexpected parameter type in action: <class 'ansible.parsing.yaml.objects.AnsibleSequence'>The error appears to have been in '/home/ansible/playbooks/clone.yml': line 4, column 7, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be: tasks: - file: ^ here
-- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.