On 28. juli 2016 22:20, venkat velpuri wrote:
I am new to ansible getting erroransible-playbook -vvvv -i apphosts file.yml ERROR: parse error: playbooks must be formatted as a YAML list, got <type 'dict'> tasks: - name: Check that the somefile.conf exists stat: path=/etc/file.txt register: stat_result - name: Create the file, if it doesnt exist already file: path=/etc/file.txt state=touch when: stat_result.stat.exists == False can any one please help me to sort this problem
This is a task list not a playbook, I suggest reading this short intro and you'll learn the difference.
https://docs.ansible.com/ansible/playbooks_intro.html -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c1f3b002-9dfe-322e-2a91-507d831d8a7c%40olstad.com. For more options, visit https://groups.google.com/d/optout.
