From 66c8c20453d5280040b8a7a70beaec6a51acf348 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Thu, 25 Jul 2019 18:33:32 +0200 Subject: [PATCH] rust-example: use the new 'module: options' format Replace the legacy 'action: module options' with new 'module: options' format. --- rust-module-hello-world/module-src/Cargo.lock | 2 ++ 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 77a88d2c9..b6d9f8f4b 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 25c2586a6..5694869ab 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