Re: [ansible-project] RPM BUILD procedure for ansible-core 2.14.1

2022-12-16 Thread Nico Kadel-Garcia
On Fri, Dec 16, 2022 at 6:52 AM sathish subramani wrote: > > Hi Team, > > we are using RHEL 8 , you have mentioned to use the upstream RPMs for > ansible-core instead of build the RPMs. > > can you provide link where we can use upstream RPMs for ansisble-core.2.14.1 > version. > > Thanks and Reg

Re: [EXTERNAL] [ansible-project] Error odule fetch dest is an existing directory

2022-12-16 Thread Todd Lewis
It looks like you already have a directory named "/home/emanuel/file.bz2". You need to remove or rename the existing directory before you can create a file with that same name. On Friday, December 16, 2022 at 4:43:57 PM UTC-5 ema...@gmail.com wrote: > I try, but i see this > > The full tracebac

Re: [EXTERNAL] [ansible-project] Error odule fetch dest is an existing directory

2022-12-16 Thread Dick Visser
The error is very clear: there is a directory with that name. Remove that first and then try again On Fri, 16 Dec 2022 at 22:43, SysAdmin EM wrote: > I try, but i see this > > The full traceback is: > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/ansible/plugins/a

Re: [EXTERNAL] [ansible-project] Error odule fetch dest is an existing directory

2022-12-16 Thread SysAdmin EM
I try, but i see this The full traceback is: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/ansible/plugins/action/fetch.py", line 176, in run f = open(to_bytes(dest, errors='surrogate_or_strict'), 'wb') IsADirectoryError: [Errno 21] Es un directorio: b'/home/emanuel

RE: [EXTERNAL] [ansible-project] Error odule fetch dest is an existing directory

2022-12-16 Thread 'Hearn, Stan J.' via Ansible Project
local_user.stdout is a directory that exists. Do you want to replace the directory with a file named file.bz2? If you are wanting to put the file inside the directory, then add a slash to {{ local_user.stdout }}_SLASH_ dest: "/home/{{ local_user.stdout }}/" Regards, Stan From: ansib

[ansible-project] Error odule fetch dest is an existing directory

2022-12-16 Thread SysAdmin EM
Hi, i use the fetch module to copy files from remote to local: - delegate_to: localhost become: false command: whoami register: local_user - name: "copy to local" fetch: src: "/tmp/file.bz2" dest: "/home/{{ local_user.stdout }}" flat: true I

[ansible-project] Re: ANSIBLE - Venv - Use /usr/bin/ansible

2022-12-16 Thread julien mahieu
Finally, the problem was related to security restrictions on the partition where my venv was located. It works perfectly on another mounting point. Ju Le mardi 13 décembre 2022 à 17:09:32 UTC+1, julien mahieu a écrit : > Hi experts, > > In order to manage network devices, I'm currently setting

Re: [ansible-project] Ansible search and cut from stdout_lines in variable

2022-12-16 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
On this page https://www.tailored.cloud/devops/how-to-filter-and-map-lists-in-ansible/ use "select" filter to filter a list and "match" to combine it with reg expressions, like: "{{ ansible_interfaces | select('match', '^(eth|wlan)[0-9]+') | list }}" In your case maybe this will work: - deb

Re: [ansible-project] RPM BUILD procedure for ansible-core 2.14.1

2022-12-16 Thread sathish subramani
Hi Team, we are using RHEL 8 , you have mentioned to use the upstream RPMs for ansible-core instead of build the RPMs. can you provide link where we can use upstream RPMs for ansisble-core.2.14.1 version. Thanks and Regards, S Sathish On Friday, December 16, 2022 at 5:13:17 PM UTC+5:30 nka...

Re: [ansible-project] RPM BUILD procedure for ansible-core 2.14.1

2022-12-16 Thread Nico Kadel-Garcia
On Thu, Dec 15, 2022 at 1:48 AM sathish subramani wrote: > > Hi Team, > > In older version of ansible till 2.9 we download ansible source tar from > below Ansible URL > > URL: https://releases.ansible.com/ansible/ > > Step Followed: > > tar xvf ansible-2.8.3.tar.gz > > cp ansible-2.8.3.tar.gz /r

[ansible-project] Ansible search and cut from stdout_lines in variable

2022-12-16 Thread Dbibi Amine
Hello, I didnt find a solution to get this line /opt/bea/cfgtoollogs/opatch/opatch2022-12-16_10-44-20AM_1.log", from stdout_lines thanks :) [image: Capture.PNG] stdout_lines": [ "Programme d'installation des patches temporaires Oracle version 13.9.4.2.8", "Copyright