Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: "{{ exec_host }}"
- tasks:
- - name: Echo
- shell: echo "Black"
- register: echo
- - name: Echo two
- set_fact:
- myvars: "{{ echo.stdout }}"
- when: echo.stdout == 'Black'
- - debug:
- msg: "{{ myvars }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement