Has anyone faced this issue ?

On Monday, February 8, 2016 at 5:48:04 PM UTC+2, Atanas Dichev wrote:
>
> Hi,
> My ansible version is:
> ansible 2.1.0 (devel a584ab3 
> <https://github.com/ansible/ansible/commit/a584ab34200f634694724175552a2307ae3bd80e>)
>  
> last updated 2016/02/02 12:07:20 (GMT +300)
> I have a defined role with a tasks file which includes creation of a 
> symbolic link to a directory with owner and group attributes set to a 
> specific user. When I execute the playbook, the symlink is created but I 
> cannot access it with root user. The issue does not appear when I create it 
> with an ad-hoc command. What is wrong with my setup?
> role's vars:
>
> ansible_user: root
>
> service_name: tomcat
>
> install_dir: /tmp
>
> major_version: 8
>
> full_version: "{{ major_version }}.0.30"
>
>
> the task in the role's tasks file:
>
>   - name: Create symlink tomcat home dir
>
>     file:
>
>       path: "{{ install_dir }}/tomcat"
>
>       src: "{{ install_dir }}/apache-tomcat-{{ full_version }}"
>
>       state: link
>
>       owner: tomcat
>
>       group: tomcat
>
>
> root@system# cd /tmp/tomcat
> -bash: cd: /tmp/tomcat: Permission denied
>
>
>

-- 
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/a462e964-a15f-4e01-94b2-6026f0227901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to