help me

18 views
Skip to first unread message

huangwe...@gmail.com

unread,
Jun 12, 2023, 9:37:11 AM6/12/23
to Ansible Project

huangwe...@gmail.com

unread,
Jun 12, 2023, 9:41:41 AM6/12/23
to Ansible Project
why ,     skip?  


在2023年6月12日星期一 UTC+8 21:37:11<huangwe...@gmail.com> 写道:
https://github.com/ansible/ansible/issues/81031

Brian Coca

unread,
Jun 12, 2023, 1:55:47 PM6/12/23
to ansible...@googlegroups.com
because tests//lookups/filters/.. basically everything except the
module itself, executes on controller, so you need to have a 'stat'
tasks first, register the result and use that to see if the file
exists. As written your conditional will only work if the controller
has that file (remote is never checked).



--
----------
Brian Coca

Reply all
Reply to author
Forward
0 new messages