Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit 66c8c20

Browse files
rust-example: use the new 'module: options' format
Replace the legacy 'action: module options' with new 'module: options' format.
1 parent 945b1c5 commit 66c8c20

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rust-module-hello-world/module-src/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-module-hello-world/rust.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
ping:
1212

1313
- name: Hello, World!
14-
action: rust_helloworld
14+
rust_helloworld:
1515
register: hello_world
1616

1717
- assert:
@@ -20,8 +20,7 @@
2020
hello_world.msg == "Hello, World!"
2121
2222
- name: Hello, Ansible!
23-
action: rust_helloworld
24-
args:
23+
rust_helloworld:
2524
name: Ansible
2625
register: hello_ansible
2726

@@ -31,7 +30,7 @@
3130
hello_ansible.msg == "Hello, Ansible!"
3231
3332
- name: Async Hello, World!
34-
action: rust_helloworld
33+
rust_helloworld:
3534
async: 10
3635
poll: 1
3736
register: async_hello_world
@@ -42,8 +41,7 @@
4241
async_hello_world.msg == "Hello, World!"
4342
4443
- name: Async Hello, Ansible!
45-
action: rust_helloworld
46-
args:
44+
rust_helloworld:
4745
name: Ansible
4846
async: 10
4947
poll: 1

0 commit comments

Comments
 (0)