blob: 5694869aba3df63ceb42aec5b00f02f2e4944934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
---
- 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!"
|