can't fire and forget from a list - looking for other options

22 views
Skip to first unread message

Larry Fast

unread,
Feb 14, 2015, 4:15:11 PM2/14/15
to ansible...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages