# Test basic functinality of exec_command. --- - name: integration/connection/exec_command.yml hosts: test-targets gather_facts: no tasks: - connection_passthrough: method: exec_command kwargs: cmd: echo "hello, world" register: out - assert: that: - out.result[0] == 0 - out.result[1].decode() == "hello, world\r\n" - out.result[2].decode().startswith("Shared connection to ") fail_msg: out={{out}} tags: - exec_command