Ansible :: Error while linking: [Errno 13] Permission denied

11 views
Skip to first unread message

Swapnil Bendekar

unread,
Jul 13, 2017, 1:59:59 PM7/13/17
to Ansible Project
Hello Folks,

With Ansible(2.3.0.0)  and  python(2.6.6), executing ansible playbook from webadmin user. 
Using remote_user = ansible (in ansible.cfg )for passwordless authentication.
While creating symlink, getting Error while linking: [Errno 13] Permission denied

 file:
      src: /path/to/be/linked
      dest: "{{dest_home}}/{{dest_app}}"
      state: link
      follow: True
      force: True
 
Do let me know if any other information needed.
Appreciate your help to resolve this issue.

Kai Stian Olstad

unread,
Jul 13, 2017, 3:01:19 PM7/13/17
to ansible...@googlegroups.com
As the error message say, the user doesn't have the permission to create
the link.
Resolve the permission or run it with become.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages