Skip to content

Commit

Permalink
rust-example: use the new 'module: options' format
Browse files Browse the repository at this point in the history
Replace the legacy 'action: module options' with new
'module: options' format.
  • Loading branch information
stefano-garzarella committed Aug 23, 2019
1 parent 945b1c5 commit 66c8c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions rust-module-hello-world/module-src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions rust-module-hello-world/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ping:

- name: Hello, World!
action: rust_helloworld
rust_helloworld:
register: hello_world

- assert:
Expand All @@ -20,8 +20,7 @@
hello_world.msg == "Hello, World!"
- name: Hello, Ansible!
action: rust_helloworld
args:
rust_helloworld:
name: Ansible
register: hello_ansible

Expand All @@ -31,7 +30,7 @@
hello_ansible.msg == "Hello, Ansible!"
- name: Async Hello, World!
action: rust_helloworld
rust_helloworld:
async: 10
poll: 1
register: async_hello_world
Expand All @@ -42,8 +41,7 @@
async_hello_world.msg == "Hello, World!"
- name: Async Hello, Ansible!
action: rust_helloworld
args:
rust_helloworld:
name: Ansible
async: 10
poll: 1
Expand Down

0 comments on commit 66c8c20

Please sign in to comment.