SHARE
TWEET

task.yml

a guest Mar 25th, 2019 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. - name: Create Container
  3.   docker_container:
  4.     name: container
  5.     image: something/here
  6.     env:
  7.        <if global_variable is true "KEY: value">
  8. # the variable global_variable is set to either in /group_vars/all.yml
  9. # this task is called from a playbook.yml
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