Re: [ansible-project] [WARNING]: While constructing a mapping from /etc/ansible/playbooks/touch.yml, line 2, column 3, found a duplicate dict key (tasks). Using last defined value only.

2017-05-19 Thread Anfield
Ok, nevermind. Only one instance of the tasks:, but multiple tasks underneath. Thanks! > -- 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

Re: [ansible-project] [WARNING]: While constructing a mapping from /etc/ansible/playbooks/touch.yml, line 2, column 3, found a duplicate dict key (tasks). Using last defined value only.

2017-05-19 Thread Anfield
Only one task for each playbook? Didnt know that > > -- 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 ansible-project+unsubscr...@googlegroups.com. To post

Re: [ansible-project] [WARNING]: While constructing a mapping from /etc/ansible/playbooks/touch.yml, line 2, column 3, found a duplicate dict key (tasks). Using last defined value only.

2017-05-19 Thread Kai Stian Olstad
On 19. mai 2017 16:38, Anfield wrote: I have the following playbook and I got the above error. This created the directory but not the file. Any ideas? --- - hosts: local tasks: - name: create a file if it doesnt exist file: path: /home/ansible/touchfile.txt state: touch

[ansible-project] [WARNING]: While constructing a mapping from /etc/ansible/playbooks/touch.yml, line 2, column 3, found a duplicate dict key (tasks). Using last defined value only.

2017-05-19 Thread Anfield
I have the following playbook and I got the above error. This created the directory but not the file. Any ideas? --- - hosts: local tasks: - name: create a file if it doesnt exist file: path: /home/ansible/touchfile.txt state: touch mode: 0755 tasks: - name: