Hi Support,

I'm new for ansible and Linux, may I know, as Ubuntu disabled 'root' 
account, but when we install system, the permission was grant to 'root' as 
well, like '/etc/'..

I'm facing the problem when create /etc/nginx/nginx.conf', I'm continue 
getting 'permission denied' error.

I've copied the ssh key to 'ubuntu' account, and below is the playbook, I 
used -K to input the password as well.

- name: test playbook
  hosts: webservers
  tasks:
    - name: debug
      debug: msg="{{ group_names }}, {{ ansible_processor_cores }}"

    - name: create nginx config directory
      file: path=/etc/nginx state=directory mode=0755
      become: sudo

"msg": "There was an issue creating /etc/nginx as requested: [Errno 13] 
Permission denied: '/etc/nginx'"

Can someone help for that.

Thanks.
Best Regards,
Jason

-- 
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/7cf5cd39-e320-4cfc-996d-0cffa191be76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to