Ansible 1.6.2 on Oracle Linux 6.5. This is my first playbook.
Version 1
ansible@devansible01 playbooks]$ cat nfs_mounts.yml
Ansible 1.6.2 on Oracle Linux 6.5. This is my first playbook.
Version 1
ansible@devansible01 playbooks]$ cat nfs_mounts.yml
Hi,
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
I guess there is a missing indentation after tasks. The error message says it treats file as a parameter of a play and not of a task:
You have an indentation issue with content below tasks.