[ansible-project] Enable module in Ansible

2024-01-11 Thread lift...@gmail.com
I am working on a role to install Apache Guacamole. One of the dependencies that has to be installed is libssh2-devel, but that's not available on RHEL 8. Google is telling me that if I install the virt-devel OS module via 'dnf module enable virt-devel',that will allow libssh2-devel to be i

Re: [ansible-project] Enable module in Ansible

2024-01-11 Thread Dick Visser
I don't know, but this sounds more like a RHEL issue than an ansible issue... On Thu, 11 Jan 2024 at 15:41, lift...@gmail.com wrote: > I am working on a role to install Apache Guacamole. One of the > dependencies that has to be installed is libssh2-devel, but that's not > available on RHEL 8.

Re: [ansible-project] change of parsing of values? (in ansible.cfg)

2024-01-11 Thread Brian Coca
It should not break again, the code had 'ini' source detection broken, since it was looking for 'ini' as origin, but we set '/path/to/ansible.cfg' instead, so it was not matching. -- -- Brian Coca (he/him/yo) -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Enable module in Ansible

2024-01-11 Thread lift...@gmail.com
I used the command module and that seems to have let it get installed. Thanks, Harry On Thursday, January 11, 2024 at 10:27:50 AM UTC-5 Dick Visser wrote: > I don't know, but this sounds more like a RHEL issue than an ansible > issue... > > > On Thu, 11 Jan 2024 at 15:41, lift...@gmail.com wro

[ansible-project] Issue creating symbolic link

2024-01-11 Thread lift...@gmail.com
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.propert

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread Dick Visser
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, lift...@gmail.com 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 play

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread lift...@gmail.com
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? Th

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread Todd Lewis
dest: "{{ '/usr/share/' + guacamole_tomcat + '/.guacamole/guacamole.properties' }}" On Thursday, January 11, 2024 at 2:41:59 PM UTC-5 lift...@gmail.com wrote: > I'm trying to create it IN /usr/share/tomcat/.guacamole to point to > /etc/guacamole/guacamole.properties. Obviously the play isn't r

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread Todd Lewis
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. On Thursday, January 11,

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread Todd Lewis
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." On Thursday, January 11, 2024 at 2:53:51 PM

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread Dick Visser
On Thu, 11 Jan 2024 at 20:50, Todd Lewis wrote: > dest: "{{ '/usr/share/' + guacamole_tomcat + > '/.guacamole/guacamole.properties' }}" > With the strings defined outside the jinja block, it's a bit clearer: dest: "/usr/share/{{ guacamole_tomcat }}/.guacamole/guacamole.properties" -- You rece

Re: [ansible-project] Issue creating symbolic link

2024-01-11 Thread harry devine
Got it! That cleared up my confusion and it's working now. I.appreciate you guys setting me straight! Thanks, Harry On Thu, Jan 11, 2024, 3:17 PM Dick Visser wrote: > > > On Thu, 11 Jan 2024 at 20:50, Todd Lewis wrote: > >> dest: "{{ '/usr/share/' + guacamole_tomcat + >> '/.guacamole/guacamo

Re: [ansible-project] backslashes in regex_replace filter

2024-01-11 Thread Matt Martz
Part of the problem is also knowing what characters are escape sequences in python. \1 is an escape sequence, equivalent to `\x01`, and not equivalent to the literal `\1`. As such a literal `\1` needs to be represented in python as `\\1`. \d is not an escape sequence and thus can be written as a