Comments (6)
It might still be in use (people still use Ansible 1.9), but it's not supported and no longer receives bug or security fixes. 2.12 reached end of life 2023-05-22.
The oldest currently supported version is 2.14, which will itself reach EOL in a couple of months (2024-05-20).
from ansible.
I believe this is a minimal reproducer:
- hosts: unreachable_host,host1,host2
gather_facts: false
any_errors_fatal: true
serial:
- 1
tasks:
- command: "false"
The first batch containing an unreachable host should fail the whole play but it continues on to the second batch, a reachable host, host1
executing a task that fails which finally fails the whole play not continuing to host2
.
I am working on a fix. The issue seems to be that for any_errors_fatal
we fail all hosts including the unreachable ones so then when we counts failed hosts to see if the whole batch failed, unreachable hosts are counted twice because they are counted as both failed and unreachable:
ansible/lib/ansible/executor/playbook_executor.py
Lines 202 to 207 in 56fa630
from ansible.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the component bot command.
from ansible.
@kurzandras ansible-core
2.12 is not supported and no longer receives bug fixes. Please test against one of the supported versions of ansible-core
, preferably the most recent one, to see whether the bug has been fixed.
from ansible.
@kurzandras
ansible-core
2.12 is not supported and no longer receives bug fixes. Please test against one of the supported versions ofansible-core
, preferably the most recent one, to see whether the bug has been fixed.
what? ansible-core 2.12 is still in use
from ansible.
Thank you for your answers! It is really a big problem for me, since I can not upgrade due to missing python dependencies. Could you please at least suggest any workarounds for the given issue? Any help is really appreciated! Thank you very much in advance!
from ansible.
Related Issues (20)
- csv lookup parameter HOT 4
- When using ansible.builtin.get_url the regex only uses "attachment" in the regex, HOT 2
- when: Nested Conditionals HOT 3
- ansible.builtin.success reports that skipped tasks completed successfully HOT 4
- ansible-galaxy silently ignores invalid parameters in requirements.yml HOT 1
- Find module behaves inconsistently with depth 1 HOT 2
- ModuleNotFoundError: No module named 'ansible.modules.ansible.module_utils HOT 3
- arista configuration fail since recent ansible upgrade HOT 1
- raw module produces non-zero return code when using network_cli connection HOT 9
- ansible.builtin.group does not diagnose absence of group as specified HOT 3
- Ansible throws an error about "raw parameters" in shell task HOT 4
- MODULE FAILURE\nSee stdout/stderr for the exact error unable to sync the git project HOT 3
- Error when environment variable contains `%` HOT 14
- Inaccessible `/dev/shm` causes the `ansible_mounts` fact not to be collected HOT 2
- ansible.builtin.apt autoremove doesn't remove anything while similar ansible.builtin.command does HOT 4
- Option to flush or ignore inventory cache for ad-hoc commands HOT 10
- Playbook execution is frozen for all hosts in case there is only one host with an SSH issues HOT 3
- ansible.builtin.ini lookup doesn't take '%' chars in value as a literal HOT 3
- Consider core deprecation/removal of paramiko HOT 1
- STRING_CONVERSION_ACTION deprecation message is not helpful at all HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.