You have an indentation issue with content below tasks.
On Tue, Jul 15, 2014 at 12:05 AM, Dave Thacker <[email protected]> wrote: > Ansible 1.6.2 on Oracle Linux 6.5. This is my first playbook. > > Version 1 > ansible@devansible01 playbooks]$ cat nfs_mounts.yml > --- > - hosts: all > tasks: > - name: create directory for use in NFS mount > file: path=/sa group=root owner=root mode=755 state=directory > > Results for Version 1 > [ansible@devansible01 playbooks]$ ansible-playbook nfs_mounts.yml > ERROR: file is not a legal parameter in an Ansible Playbook > > Version 2 (using command instead of file) > [ansible@devansible01 playbooks]$ cat nfs_mounts.yml > --- > - hosts: all > tasks: > - name: create directory for use in NFS mount > command: mkdir /sa > > > Results for Version 2 > ansible-playbook nfs_mounts.yml > ERROR: command is not a legal parameter in an Ansible Playbook > > I'm consistently breaking at the point where I specify the module. I know > that whitespace is critical, but I have not been able to spot the error. > Any tips for a novice? > > Thanks in Advance > Dave > > > -- > 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/1db297bd-58e8-4159-9db3-c47d2796d71d%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/1db297bd-58e8-4159-9db3-c47d2796d71d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgyBenRqR_ZFF-iLN3LqHriU%2B89tHK1zt6sVCLnvY%2BT_OQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
