[ansible-project] New releases: ansible-base 2.10.9, ansible 2.9.21

2021-05-03 Thread Rick Elrod
Hi all- we're happy to announce that the general releases of ansible-base 2.10.9 and ansible 2.9.21 are now available! How to get them --- $ pip install ansible-base==2.10.9 --user or $ pip install ansible==2.9.21 --user The tar.gz of the release can be found here: * ansible-base

[ansible-project] Re-Use role To Complete multi-stage Upgrade

2021-05-03 Thread Clint Denham
Somewhat new to Ansible Roles and I can't sort it out in my head how to do this. I have a situation where I need to upgrade 2 target devices from software code v1 -> v2 and once that is completed on both devices, then upgrade the devices from from software code v2 -> v3 The role I have is

Re: [ansible-project] select/reject filter parameters

2021-05-03 Thread Vladimir Botka
On Mon, 3 May 2021 14:15:14 -0700 (PDT) Dimitri Yioulos wrote: > In for example, the following: > > {{ hostvars[host]['java_one']['stderr_lines'] | reject('contains', > 'OpenJDK') }} > or > {{ hostvars[host]['java_one']['stderr_lines'] | select('contains', > 'Java(TM)') }} > > how can i add

[ansible-project] select/reject filter parameters

2021-05-03 Thread Dimitri Yioulos
In for example, the following: {{ hostvars[host]['java_one']['stderr_lines'] | reject('contains', 'OpenJDK') }} or {{ hostvars[host]['java_one']['stderr_lines'] | select('contains', 'Java(TM)') }} how can i add a second value to select or reject? I want the action to take place if "OpenJDK"

Re: [ansible-project] help needed to install Ansible on MacOS BigSur

2021-05-03 Thread Zeynal Hajili
hey guys , Even when i try to uninstall it i see following *~*$ pip uninstall ansible *Found existing installation: ansible 3.3.0* Uninstalling ansible-3.3.0: Would remove: On Sun, May 2, 2021 at 8:00 PM Zeynal Hajili wrote: > How can i verify please? > > On Sun, May 2, 2021 at 7:59 PM

Re: [ansible-project] Zap Baseline scan using ansible

2021-05-03 Thread rebecca acheampong
Okay Racke, Thank you so in that case how can I find my scan report. I am sorry to ask you this silly question. I am new to all these platforms. I went to the location but there is no report generated. Thank you. On Monday, May 3, 2021 at 5:36:34 PM UTC+3 brae...@gmail.com wrote: > On 5/3/21

Re: [ansible-project] Zap Baseline scan using ansible

2021-05-03 Thread Stefan Hornburg (Racke)
On 5/3/21 3:59 PM, rebecca acheampong wrote: > I am performing a zap-full-scan on DVWS as the target on kali. I get this > error below: > Your help is appreciated. The container is set to auto-removed, so it might be not present when you run "docker logs". I think your approach is fragile,

[ansible-project] Zap Baseline scan using ansible

2021-05-03 Thread rebecca acheampong
I am performing a zap-full-scan on DVWS as the target on kali. I get this error below: Your help is appreciated. TASK [getting raw output of the scan] * fatal: [my_vm_06]: FAILED! => {"changed": true, "cmd": ["docker", "logs", "-f",

Re: [ansible-project] Trying to use ansible to connect to Windows over SSH

2021-05-03 Thread Paul Jaros
I got it. For some reason on the command-line ansible ignores the lines shell_type=powershell or ansible_shell_type=powershell in the ansible.cfg. The command-line ansible needs the option to be put in the --extra-vars 'ansible_shell_type=powershell'. This command ansible

Re: [ansible-project] Reformat of json data using Ansible

2021-05-03 Thread Dick Visser
Ah ok, so this is basically the same question as the other message you posted. You should be able to achieve this with the combine filter: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries On Mon, 3 May 2021 at 09:13, Amit Chettri wrote: >

Re: [ansible-project] Modifying CIDR of an existing EC2 Security Groups using Ansible

2021-05-03 Thread Naveen NK
Does anyone got some idea on this? On Wednesday, April 28, 2021 at 8:15:28 AM UTC+5:30 Naveen NK wrote: > We couldn't go for VPN due to high pricing. So trying some workaround > This updating IP would go through jenkins job so there shouldn't be > security problems. > > On Tuesday, April 27,

Re: [ansible-project] Reformat of json data using Ansible

2021-05-03 Thread Amit Chettri
Hi Dick, Input json is my json file contain that i need to format it as per the output json as show in the previous mail thread, The formatted json is required by the API call hence need to remove few key out of it. actually json( input json) have a key in below format where we we need to

Re: [ansible-project] Trying to use ansible to connect to Windows over SSH

2021-05-03 Thread Paul Jaros
I'm willing to downgrade/upgrade my ansible-installtion on the Linux side or reinstall Openssh on the Windows side. Right now I'm really unsure if using Ansible from Linux commanding Windows over SSH is it **at all** working. Can please someone confirm/deny this? Paul Jaros schrieb am

Re: [ansible-project] Reformat of json data using Ansible

2021-05-03 Thread Dick Visser
Instead of us doing an eye ball diff of these complex structures, please explain what you mean exactly by reformatting. On Mon, 3 May 2021 at 08:41, Amit Chettri wrote: > Hello All, > > Is it possible that we can reformat the json body completely using Ansible? > As of now i have used the

[ansible-project] Reformat of json data using Ansible

2021-05-03 Thread Amit Chettri
Hello All, Is it possible that we can reformat the json body completely using Ansible? As of now i have used the python script to read the json data and then do the reformatting of the json. But i am interest to know if the Ansible can do itself. NOTE: can't use the template as the contain