[ansible-project] Need assistance to write script to find free space in all member switches (not just master switch)

2021-03-11 Thread Vikram S
Problem: In a stacked switch, 'ansible_net_filesystems_info' of ios_facts module only shows total and free space of master switch. It doesn't show space of member switch. But I need to write a script that will check for certain amount of free space in EVERY member switch before copying ios

[ansible-project] Ansible-3.1.0 release and ansible-4.0 alpha1 delay

2021-03-11 Thread Toshio Kuratomi
Hi all, We're happy to announce that the ansible-3.1.0 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. If you would like to learn about how and why we got to version 3.0.0, we invite you to visit our blog for the

[ansible-project] Module azure_rm_deployment getting OpenSSL.SSL.Error: [('SSL routines', 'ssl3_write_pending', 'bad write retry')]

2021-03-11 Thread mathew...@gmail.com
Hi I tried to use azure_rm_deployment module for deployment and getting OpenSSL.SSL.Error: [('SSL routines', 'ssl3_write_pending', 'bad write retry')] error. here is more details. self._raise_ssl_error(self._ssl, result)\n File

[ansible-project] become_user with prompt

2021-03-11 Thread Alejandro Larzabal
Hello, How can I respond to a user prompt that happens upon authentication? Like 'expect' enables us to respond to command prompts, but the prompt in question happens when the user logs in, not after a command. Does ansible support that? Thanks, Alex. -- You received this message because

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-11 Thread 'Mark Faine' via Ansible Project
I don't know what to tell you, it does for me. Sent from ProtonMail mobile Original Message On Mar 11, 2021, 09:52, Jorge Rúa wrote: > I've tried the following with a vanilla ansible.cfg (nothing but defaults) > > mkdir ~/temp > > ➜ temp cat test.yml > - hosts: all > serial: 1

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread madd...@gmail.com
Thanks Ganesh, I'll give that a try and let you know. On Thursday, March 11, 2021 at 10:32:15 AM UTC-5 gane...@gmail.com wrote: > You can use cli_command module to handle multiple prompts on network > device. > Refer: > >

Re: [ansible-project] blockinfile and lineinfile behaviour

2021-03-11 Thread Stu Lipshires
Sorry, a little new to this. So I don't know all the cluster names up front. I might create 1 cluster today and then tomorrow somebody will ask for a new cluster. My inventory file currently has the ip address of the VM Host that the ansible is running on. Is there something different that I

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-11 Thread Jorge Rúa
I've tried the following with a vanilla ansible.cfg (nothing but defaults) mkdir ~/temp ➜ temp cat test.yml - hosts: all serial: 1 max_fail_percentage: 1 gather_facts: false tasks: - ping: ➜ temp cat inventory [all] unreachable localhost ➜ temp ansible-playbook -i inventory

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-11 Thread Mark Faine
So, you guys think I should file an issue for this? I don't know what else to do. On Wednesday, March 10, 2021 at 4:18:54 PM UTC-6 Mark Faine wrote: > It still continues on after failing, it just does so one host at a time. > > PLAY [Ping] >

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread Ganesh Nalawade
You can use cli_command module to handle multiple prompts on network device. Refer: https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/cli_command_module.html On Thu, 11 Mar 2021 at 8:37 PM, madd...@gmail.com wrote: > I ended up running the following manually. I just need a

[ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread madd...@gmail.com
I ended up running the following manually. I just need a way for ansible to wait for certain prompts and allow the process to complete without ansible failing the job. Again, any suggestions would be appreciated. Here is the manual command ran: 9200L-24T-4G-E_2#$*install add file