Skip to content

Commit e99c9ba

Browse files
committed
fix(awx): job template credential type syntax
!43
1 parent 416acf1 commit e99c9ba

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

awx.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,12 @@
9797
- username
9898
- url
9999
- token
100-
injectors: |
101-
{% raw -%}
100+
injectors: >
102101
file:
103102
template.git_credential_file: |
104-
[credential "{{ '{{' }} url }}"]
105-
username = {{ '{{' }} username }}
106-
helper = "!f() { test \"$1\" = get && echo \"password={{ '{{' }} token }}\"; }; f"
107-
{%- endraw %}
103+
[credential "{{ url }}"]
104+
username = {{ username }}
105+
helper = "!f() { test \"$1\" = get && echo \"password={{ token }}\"; }; f"
108106
109107
110108
#################################################################################################################################

ssh.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,13 @@
9292
required:
9393
- ca_public_key
9494
- ca_signing_key
95-
injectors: |
96-
{% raw -%}
95+
injectors: >
9796
file:
9897
template: '{{ ca_signing_key }}'
9998
extra_vars:
10099
nfc_ssh_path_host_ca_key: '{{ tower.filename }}'
101100
nfc_ssh_host_ca_public_key: '{{ ca_public_key }}'
102-
nfc_ssh_host_ca_decryption_key: '{{ password | default('') }}'
103-
{%- endraw %}
101+
nfc_ssh_host_ca_decryption_key: '{{ password | default("") }}'
104102
105103
- name: role/nfc_ssh/nfc_ssh_user_ca_public_key
106104
description: A Credential type for No Fuss Computings nfc_ssh role
@@ -113,8 +111,6 @@
113111
multiline: true
114112
required:
115113
- ca_public_key
116-
injectors: |
117-
{% raw -%}
114+
injectors: >
118115
extra_vars:
119116
nfc_ssh_user_ca_public_key: '{{ ca_public_key }}'
120-
{%- endraw %}

0 commit comments

Comments
 (0)