I’m trying to work around the following limitation: lookup plugins (with_*) cannot be used with async tasks
My objective is to startup a set of listeners on a set of servers using socat. My thwarted plan was
Host_vars/hostname
listeners: [234, 567, 890]
- name: setup listeners
command: socat TCP-LISTEN:{{ item }},crlf,fork GOPEN:/dev/null
with_items: listeners
async: 10
poll: 0
Any suggestions on how I could rework my approach?