Hide API key from task output and syslog
This commit is contained in:
1 parent
4e73d48d56
commit
2c68499a10
2 files changed
+7
No files matched your search
@@ -11,6 +11,9 @@ hcio_path: /srv/healthchecksio
|
|||||||
hcio_url: ""
|
hcio_url: ""
|
||||||
hcio_api_key: ""
|
hcio_api_key: ""
|
||||||
|
|
||||||
|
# Hide API calls output, they contain the API key. Set to false to debug.
|
||||||
|
hcio_no_log: true
|
||||||
|
|
||||||
# Add prefix on slug
|
# Add prefix on slug
|
||||||
hcio_slug_prefix: "{{ inventory_hostname | replace('.', '_') }}-"
|
hcio_slug_prefix: "{{ inventory_hostname | replace('.', '_') }}-"
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
when: uuid | length <= 0
|
when: uuid | length <= 0
|
||||||
changed_when: true
|
changed_when: true
|
||||||
register: created
|
register: created
|
||||||
|
# Hide the API key (task output and syslog on the instance)
|
||||||
|
no_log: "{{ hcio_no_log }}"
|
||||||
loop: "{{ hcio_checks }}"
|
loop: "{{ hcio_checks }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -54,6 +56,8 @@
|
|||||||
"channels": "{{ channels }}"
|
"channels": "{{ channels }}"
|
||||||
}
|
}
|
||||||
when: uuid | length > 0
|
when: uuid | length > 0
|
||||||
|
# Hide the API key (task output and syslog on the instance)
|
||||||
|
no_log: "{{ hcio_no_log }}"
|
||||||
loop: "{{ hcio_checks }}"
|
loop: "{{ hcio_checks }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
|
|||||||
Reference in new issue
Block a user