Answers for "Ansible use stdout in when condition"

0

Ansible use stdout in when condition

- shell: cat "hello"
      register: cat_contents

    - shell: echo "I cat hello"
      when: cat_contents.stdout == "hello"
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language