Skip to content

Commit

Permalink
check conversion with var at task level (will fail until issue #31 is…
Browse files Browse the repository at this point in the history
… fixed)
  • Loading branch information
zerwes committed Jan 8, 2025
1 parent 88210eb commit 3b05f28
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
25 changes: 25 additions & 0 deletions exampleconverted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b05f28

Please sign in to comment.