Thanks. I've provided upstream with a fix and will add it to the next point
release: https://github.com/ansible-collections/ansible.posix/pull/687
Could you test it to ensure it still functions for your use case with the patch?
On Fri, 4 Jul 2025 22:51:55 +0200 Slavko <[email protected]> wrote:
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