The error can't be any clearer.
The symlink you're trying to create already exists as a directory


Sent from Gmail Mobile


On Thu, 11 Jan 2024 at 20:25, [email protected] <[email protected]> wrote:

> I know this should be trivial, but I just cannot get it to work.  I'm
> trying to create a symbolic link in my playbook.  I'm trying to link
> /etc/guacamole/guacamole.properties in the /usr/share/tomcat/.guacamole
> directory as follows:
>
> - name: Config | Creating Tomcat symlink For guacamole.properties
>   ansible.builtin.file:
>     src: /etc/guacamole/guacamole.properties
>     dest: "{{ '/usr/share/' + guacamole_tomcat + '/.guacamole' }}"
>     state: link
>     owner: "{{ guacamole_tomcat_user }}"
>     group: "{{ guacamole_tomcat_user }}"
>     mode: 0664
>   notify:
>     - "Restart {{ guacamole_tomcat_service }}"
>     - Kill guacd
>     - Restart guacd
>
> But my playbook keeps giving me this error:
>
> refusing to convert from directory to symlink for
> /usr/share/tomcat/.guacamole
>
> Any ideas on what I'm doing wrong?
>
> Thanks,
> Harry
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/974e3258-2936-4379-81d9-352293f9cba7n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/974e3258-2936-4379-81d9-352293f9cba7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLY%3DAqF-DRdsbsr0PWVchHQWUkeX5g3EOWQsdHF-SYg%3D3Q%40mail.gmail.com.

Reply via email to