Re: [ansible-project] Parsing csv file and running shell command

2023-04-13 Thread Vladimir Botka
On Thu, 13 Apr 2023 21:14:42 -0700 (PDT) "alonso...@gmail.com" wrote: > --- > - name: Read Users > gather_facts: True > hosts: localhost > > tasks: > - name: Read users > read_csv: > path: users.csv > delimiter: "," > register: s3list > > - name

[ansible-project] Parsing csv file and running shell command

2023-04-13 Thread alonso...@gmail.com
Hello All, I am trying to use ansible to read values from a csv file (source and destination) and then run commands using the shell module, but I am having no success. Please assist . The playbook: --- - name: Read Users gather_facts: True hosts: localhost tasks: - name: Read

Re: [ansible-project] Re: Windows Batch File via Ansible - ERROR: Input redirection is not supported

2023-04-13 Thread Dick Visser
You could suggest your ping replacement to the vendor. If the vendor then updates their script with your changes, you can have the benefits of running unmodified vendor code. On Thu, 13 Apr 2023 at 22:06, Joefrey wrote: > I'm able to workaround the issue by replacing the vendor's TIMEOUTs with >

[ansible-project] Re: Windows Batch File via Ansible - ERROR: Input redirection is not supported

2023-04-13 Thread Joefrey
I'm able to workaround the issue by replacing the vendor's TIMEOUTs with "ping -n X >NUL". @jborean93, are there any Ansible flags or tricks that would allow this to work without modifying the vendor's script? On Thursday, April 13, 2023 at 12:26:58 PM UTC-5 Joefrey wrote: > Good day, > > Stru

[ansible-project] Windows Batch File via Ansible - ERROR: Input redirection is not supported

2023-04-13 Thread Joefrey
Good day, Struggling to find a way to run the below vendor-provided batch file via Ansible. The script works fine when run manually, but I receive dozens of the below error when executing via Ansible win_command or win_shell. I have also tried to execute the batch file interactively using becom

[ansible-project] Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017

2023-04-13 Thread javed khan Siddque
Hi Team, i was trying to create ssh connection through tower for one server 162.xx.xx.xx but got below error when i try to do it manually ssh connection , it is successful without any error. fatal: [server.xx.org]: FAILED! => { "ansible_facts": {}, "changed": false, "failed_mod

Re: [ansible-project] Re: Expect module throwing up an error while passing responses

2023-04-13 Thread ls440
I think i need to hit enter after each responses how is that possible because i see the ansible output fails "Please enter installation path ':", "", "Installation path?\u001b[0m [ /tmp/output\ ]: " On Thursday, April 13, 2023 at 3:42:36 PM UTC+2 ls440 w

Re: [ansible-project] Re: Expect module throwing up an error while passing responses

2023-04-13 Thread ls440
Hi all, i am facing the issues with expect module though the timeout: 600 is mentioned, i always get "msg": "command exceeded timeout", i have around 25 reponses to answer. - name: install file expect: command: /tmp/install.run responses: 'Installation path\? \[/tmp