diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-07-25 19:33:32 +0300 |
---|---|---|
committer | Stefano Garzarella <sgarzare@redhat.com> | 2019-08-23 11:17:37 +0300 |
commit | 66c8c20453d5280040b8a7a70beaec6a51acf348 (patch) | |
tree | ec7ff2139b4372d3818ccb8baa96d5a06462c0d8 | |
parent | 945b1c5d39475ac61047a58355f533b337e45589 (diff) |
rust-example: use the new 'module: options' format
Replace the legacy 'action: module options' with new
'module: options' format.
-rw-r--r-- | rust-module-hello-world/module-src/Cargo.lock | 2 | ||||
-rw-r--r-- | rust-module-hello-world/rust.yml | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/rust-module-hello-world/module-src/Cargo.lock b/rust-module-hello-world/module-src/Cargo.lock index 77a88d2..b6d9f8f 100644 --- a/rust-module-hello-world/module-src/Cargo.lock +++ b/rust-module-hello-world/module-src/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "dtoa" version = "0.4.2" diff --git a/rust-module-hello-world/rust.yml b/rust-module-hello-world/rust.yml index 25c2586..5694869 100644 --- a/rust-module-hello-world/rust.yml +++ b/rust-module-hello-world/rust.yml @@ -11,7 +11,7 @@ ping: - name: Hello, World! - action: rust_helloworld + rust_helloworld: register: hello_world - assert: @@ -20,8 +20,7 @@ hello_world.msg == "Hello, World!" - name: Hello, Ansible! - action: rust_helloworld - args: + rust_helloworld: name: Ansible register: hello_ansible @@ -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 @@ -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 |