--- - hosts: localhost tasks: - debug: msg: Testing a binary module written in Rust - debug: var: ansible_system - name: ping ping: - name: Hello, World! rust_helloworld: register: hello_world - assert: that: - > hello_world.msg == "Hello, World!" - name: Hello, Ansible! rust_helloworld: name: Ansible register: hello_ansible - assert: that: - > hello_ansible.msg == "Hello, Ansible!" - name: Async Hello, World! rust_helloworld: async: 10 poll: 1 register: async_hello_world - assert: that: - > async_hello_world.msg == "Hello, World!" - name: Async Hello, Ansible! rust_helloworld: name: Ansible async: 10 poll: 1 register: async_hello_ansible - assert: that: - > async_hello_ansible.msg == "Hello, Ansible!"