Skip to content

Commit

Permalink
Transform incorrectly moves the empty line above the arguments
Browse files Browse the repository at this point in the history
The changed_when avoids this. This appears to be an unrelated issue, but
can be worked around this way.
  • Loading branch information
Qalthos committed Jun 10, 2024
1 parent b2029db commit c2f0510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/playbooks/transform-no-free-form.transformed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- name: Example task with usage for '=' as module params
ansible.builtin.debug:
msg: "'Hello there world'"
changed_when: false

- name: Task that has a non-debug string with spaces
ansible.builtin.set_fact:
Expand Down
1 change: 1 addition & 0 deletions examples/playbooks/transform-no-free-form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- name: Example task with usage for '=' as module params
ansible.builtin.debug: msg='Hello there world'
changed_when: false

- name: Task that has a non-debug string with spaces
ansible.builtin.set_fact: foo="String with spaces"

0 comments on commit c2f0510

Please sign in to comment.