Giter Club home page Giter Club logo

Comments (6)

flowerysong avatar flowerysong commented on September 24, 2024 1

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.

mkrizek avatar mkrizek commented on September 24, 2024 1

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:

failed_hosts_count = len(self._tqm._failed_hosts) + len(self._tqm._unreachable_hosts) - \
(previously_failed + previously_unreachable)
if len(batch) == failed_hosts_count:
break_play = True
break

from ansible.

ansibot avatar ansibot commented on September 24, 2024

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.

ansibot avatar ansibot commented on September 24, 2024

@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.

click here for bot help

from ansible.

limaofu avatar limaofu commented on September 24, 2024

@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.

click here for bot help

what? ansible-core 2.12 is still in use

from ansible.

kurzandras avatar kurzandras commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.