diff options
author | Sviatoslav Sydorenko <webknjaz@redhat.com> | 2020-03-18 16:37:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 16:37:20 +0300 |
commit | 035a6dbd17b94a82a5732e9851b8b5d92e0e6d7f (patch) | |
tree | 1e8dca8089cbaad80be4c60f71da9b86ef06b8fc | |
parent | 065999a6618d827a9257021a9082aba0d874f094 (diff) | |
parent | 66c8c20453d5280040b8a7a70beaec6a51acf348 (diff) |
Merge pull request #255 from stefano-garzarella/rust_example_fix
rust-example: use the 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 |