[ansible-devel] Any tool can convert puppet code to ansible code

2024-07-24 Thread rajtheco...@gmail.com
Hi Team, Any tool available can convert puppet code to ansible code,? Thanks Raj -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubs

Re: [ansible-devel] Gather facts failed to execute on target(Redhat)

2023-07-17 Thread rajtheco...@gmail.com
Thank you Andi !!! On Monday, July 17, 2023 at 6:59:18 PM UTC+5:30 ahae...@gmail.com wrote: > > > Regarding the technical reason for your error: AFAIK RHEL 5 comes with > > Python 2.4; Ansible requires at least Python 2.6 on a managed node; see > > Minor correction … the above was the requiremen

[ansible-devel] Gather facts failed to execute on target(Redhat)

2023-07-17 Thread rajtheco...@gmail.com
Hi Team, One of the server encountered the below issue while executing setup module, Can anyone help ? OS: redhat-release-5Server-5.11.0.9 Error message: * "ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"},"changed": false,"module_stderr": "Op

[ansible-devel] Re: Oracle OCI Collections - how to read a return value

2022-06-27 Thread rajtheco...@gmail.com
Show me the playbook On Friday, May 6, 2022 at 3:39:17 PM UTC+5:30 babu...@gmail.com wrote: > > Hello Team, > I am writing a play book to create a resource in Oracle OCI with Ansible > OCI Collections. Once the resource is created, I need the id of the > resource to use in the next play book. >

[ansible-devel] Re: windows host automation

2021-09-22 Thread rajtheco...@gmail.com
I am not sure Ansible can read mail, however you can use the win_updates module to patch your windows machine On Thursday, August 19, 2021 at 3:05:14 PM UTC+5:30 jainsa...@gmail.com wrote: > For windows host > > How to write tasks in ansible : > > >1. Login into RDP machine >2. Login

[ansible-devel] Re: Ansible 2.9 Playbook

2021-09-22 Thread rajtheco...@gmail.com
Please post your error message On Monday, September 13, 2021 at 9:36:10 PM UTC+5:30 ggabri...@gmail.com wrote: > Running Ansible 2.9 but having issues getting playbook to run, here > is an example of the playbook > >- hosts: switch01 > gather_facts: no >

[ansible-devel] Re: Use Ansible to copy files to Windows NFS

2021-09-22 Thread rajtheco...@gmail.com
try mounting the nfs with mount and then copy the file. On Monday, September 20, 2021 at 7:16:59 PM UTC+5:30 timothy...@bmt.ky wrote: > *Overview:* > > I have an Ansible node that has a number of files on it. I would like to > copy those fil

Re: [ansible-devel] searching multi lines using regex

2020-09-21 Thread rajtheco...@gmail.com
21, 2020 at 9:09:27 PM UTC+5:30 rhar...@umich.edu wrote: > On Mon, Sep 21, 2020 at 11:29 AM rajtheco...@gmail.com < > rajtheco...@gmail.com> wrote: > >> How to search multiple lines using regex in Ansible? >> >> I tried below pattern and it is not working >>

[ansible-devel] searching multi lines using regex

2020-09-21 Thread rajtheco...@gmail.com
How to search multiple lines using regex in Ansible? I tried below pattern and it is not working regex: ^line con.*(?:\n^\s.*) line console 0 password -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and

[ansible-devel] How to capture unreachable host and authentication failure host

2020-07-20 Thread rajtheco...@gmail.com
Hi Team, We are running a task against 1000 network devices, We get a few hosts failed and ansible skips those hosts in the next task. We are generating a report in the end , We need to have those unreachable hosts and authentication failure hosts in the report. Can anyone help me ? Thanks