Skip to content

Commit

Permalink
Fixes #37091 - Pretty print long YAML list
Browse files Browse the repository at this point in the history
  • Loading branch information
Et7f3 authored and nofaralfasi committed Mar 24, 2024
1 parent 214cb25 commit 7e7d502
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ template_inputs:
provider_type: Ansible
kind: job_template
model: JobTemplate
%>

-%>
# For Windows targets use the win_package module instead.
---
- hosts: all
Expand All @@ -41,7 +40,7 @@ model: JobTemplate
<%- end -%>
tasks:
- package:
name: <%= input('name') %>
<%= indent(8) { to_yaml({"name" => input('name')}).gsub(/---\n/, '') } -%>
state: <%= input('state') %>
<%- if input('post_script').present? -%>
post_tasks:
Expand Down

0 comments on commit 7e7d502

Please sign in to comment.