Advertisement
Guest User

Untitled

a guest
May 29th, 2018
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.25 KB | None | 0 0
  1. - name: run command in container
  2.   delegate_to: docker_container_name
  3.   raw: 'echo {{ item }} > /some/path/file.sh && chmod +x /some/path/file.sh'
  4.   register: installed
  5.   with_file:
  6.    - '/tmp/some_file'
  7.   changed_when: 'installed.stderr != ""'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement