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] 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] any_errors_fatal doesn't fail with unreachable hosts

2021-03-10 Thread Mark Faine
It still continues on after failing, it just does so one host at a time. PLAY [Ping] ** TASK [Ping Servers]

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

2021-03-10 Thread Jorge Rúa
What happens if you add serial:1 and max_fail_percentage:1 and removing any_errors_fatal directive? On Wed, Mar 10, 2021, 21:35 Mark Faine wrote: > > I'm trying to ping servers and fail immediately at the first one that is > unreachable. However, this doesn't seem to work. I found this old

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

2021-03-10 Thread Mark Faine
I'm trying to ping servers and fail immediately at the first one that is unreachable. However, this doesn't seem to work. I found this old issue about it but apparently it hasn't been resolved. https://github.com/ansible/ansible/issues/16475 --- - name: Ping hosts: all gather_facts: