• Bug#1108734: ansible: _AnsibleActionDone are deprecated

    From Slavko@21:1/5 to All on Fri Jul 4 09:40:01 2025
    Package: ansible
    Severity: normal
    Version: 12.0.0~a6+dfsg-1

    Hi,

    after upgrade to this version i got deprecation warning (wrapped):

    [DEPRECATION WARNING]: Importing '_AnsibleActionDone' is deprecated. \
    This feature will be removed from ansible-core version 2.23. Return \
    directly from action plugins instead.

    The only place where i found import _AnsibleActionDone is in file ansible_collections/ansible/posix/plugins/action/patch.py, which is part
    of ansible package.

    regards

    --
    Slavko
    https://www.slavino.sk

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lee Garrett@21:1/5 to Slavko on Fri Jul 4 21:40:01 2025
    Hi Slavko,

    On 4 July 2025 09:34:02 CEST, Slavko <[email protected]> wrote:
    Package: ansible
    Severity: normal
    Version: 12.0.0~a6+dfsg-1

    Hi,

    after upgrade to this version i got deprecation warning (wrapped):


    Do you have a minimal reproduce for this error? You didn't mention what you've run.

    [DEPRECATION WARNING]: Importing '_AnsibleActionDone' is deprecated. \
    This feature will be removed from ansible-core version 2.23. Return \
    directly from action plugins instead.

    The only place where i found import _AnsibleActionDone is in file >ansible_collections/ansible/posix/plugins/action/patch.py, which is part
    of ansible package.

    regards


    Greets,
    Lee

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Slavko@21:1/5 to All on Fri Jul 4 23:10:02 2025
    Hi,

    Dňa Fri, 04 Jul 2025 21:25:25 +0200 Lee Garrett <[email protected]> napísal:

    Do you have a minimal reproduce for this error? You didn't mention
    what you've run.

    It was a little challenge for me, as it is triggered by next task (than
    it is reported), but finally i was able to isolate it, playbook:

    - name: Reproduce bug 1108734
    hosts: ...
    gather_facts: yes
    become: yes

    tasks:
    - name: Some patch
    patch:
    src: patches/some.patch
    basedir: /some/dir
    strip: 2
    when: false

    In really i have another condition, forced false is enough to show
    warning (anyway original always results in false, as i noticed now).

    My ansible.cfg file is simple, and commenting all lines (except of inventory=..., BTW static dir) has no effect. I checked porting notes,
    but i didn't find anything related,

    regards

    --
    Slavko
    https://www.slavino.sk

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)