ERROR! Syntax Error while loading YAML.
mapping values are not allowed in this context
The error appears to have been in '/home/user/.ansible/roles/nfs/tasks/main.yml': line 14, column 16, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
dest:/etc/exports
insertafter: EOF
^ here
- name: Update apt cahce
apt: update_cache=yes cache_valid_time=3600
- name: Install NFS Kernel on websevers
apt: name={{ item }} state=present
with_items:
- nfs-kernel-server
- name: Update Exports file nfs
lineinfile:
dest:/etc/exports
insertafter: EOF
create: True
line: /var/www/wordpress *(insecure,rw,all_squash,anonuid=1000,anongid=1000,no_subtree_check)
notify:
- restart nfs
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b355de24-9c8f-4aa4-bfa2-6753bfbc43ac%40googlegroups.com.
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/66df5f95-751e-4dda-a57c-7b01b0b42fbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v_DeLC03TwaaXLFRqm41zhZ%2B_Vo8Q9MSCZprZKid0z5tg%40mail.gmail.com.