feat(ansible): use raw strings

This commit is contained in:
Michele Cereda
2025-09-11 20:07:20 +02:00
parent ca2df8e650
commit a916fec227
4 changed files with 42 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env
#!/usr/bin/env fish
# configure access
set -x 'TOWER_HOST' 'https://awx.example.com/'

View File

@@ -305,6 +305,8 @@
'--exclude-schema=transient_views',
] | flatten | unique
}}
raw_string: !unsafe "{{ this template is not executed, but given as-is as string }}"
raw_string_via_jinja_specification: "{% raw -%} 234%234{435lkj{{lkjsdf {%- endraw %}"
- name: Return data types
tags:

View File

@@ -43,6 +43,10 @@ curl -fs --user 'admin:password' 'https://awx.example.org/api/v2/job_templates/'
awx job_templates modify '1' --extra_vars "@vars.yml"
awx job_templates modify '5' --extra_vars "@vars.json"
# Show workflow job templates
awx workflow_job_templates get 'some workflow job template'
awx workflow_job_templates get -f 'yaml' 'some workflow job template returned as yaml'
# Show notification templates
awx notification_templates list
curl -fs --user 'admin:password' 'https://awx.example.org/api/v2/notification_templates/' | jq '.' -