From 3b05f282cb45f2174ba32ebf8c7c27e3affde0a4 Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Wed, 8 Jan 2025 08:49:42 +0100 Subject: [PATCH] check conversion with var at task level (will fail until issue #31 is fixed) --- example.yml | 25 +++++++++++++++++++++++++ exampleconverted.yml | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/example.yml b/example.yml index edc03cc..f26c69b 100644 --- a/example.yml +++ b/example.yml @@ -143,3 +143,28 @@ enabled: false state: stopped masked: true + +--- +# issue #31 +- name: test file 1 + file: + path: /a/b/c/1 + +- name: command with vars 1 + command: echo "before file 2" + vars: + ansible_ssh_pipelining: true + +- name: test file 2 + file: + path: /a/b/c/2 + +- name: command with vars 2 + vars: + ansible_ssh_pipelining: true + command: echo "before file 3" + +- name: test file 3 + file: + path: /a/b/c/3 +# end issue #31 diff --git a/exampleconverted.yml b/exampleconverted.yml index 1504133..f74c162 100644 --- a/exampleconverted.yml +++ b/exampleconverted.yml @@ -143,3 +143,28 @@ enabled: false state: stopped masked: true + +--- +# issue #31 +- name: test file 1 + ansible.builtin.file: + path: /a/b/c/1 + +- name: command with vars 1 + ansible.builtin.command: echo "before file 2" + vars: + ansible_ssh_pipelining: true + +- name: test file 2 + ansible.builtin.file: + path: /a/b/c/2 + +- name: command with vars 2 + vars: + ansible_ssh_pipelining: true + ansible.builtin.command: echo "before file 3" + +- name: test file 3 + ansible.builtin.file: + path: /a/b/c/3 +# end issue #31