SHARE
TWEET

Untitled

quarkbuddha Jun 12th, 2019 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. - name: what it is
  3.   hosts: all
  4.   vars:
  5.     bother:
  6.       - thing1: moo
  7.       - thing2: cow
  8.       - thing3: ["boom","boom"]
  9.   tasks:
  10.     - name: bother
  11.       debug: var=bother
  12.     - name: the thing
  13.       debug: var=item
  14.       loop: ["{% for item in bother %} {{ item.thing3 if 'thing3' in item else None }} {% endfor %}"]
  15.       loop_control:
  16.         loop_var: item
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top