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:
I’m trying to create it IN /usr/share/tomcat/.guacamole to point to /etc/guacamole/guacamole.properties. Obviously the play isn’t right, but what should it be? Do I need to make the destination “/usr/share/tomcat/.guacamole/guacamole.properties”? Or are the src and dest options reversed? The /etc/guacamole/guacamole.properties is a file and not a directory.
You can think of them as reversed if it will help you understand it.
As for the ansible.builtin.file module, the “path” (alias “dest”) is the thing you are creating / modifying / deleting. “src” is what the ASCII arrow points to when you do “ls -l” on the command line.
If you think of “src” as “one end of the ‘ls -l’ arrow”, then they are certainly reversed.
But if you think of “src” as “the source of data when reading from the link”, then “src” makes sense. The “dest” becomes “the place to create the link itself.”