Merge pull request 'Hide API key from task output and syslog' (#1) from hide-api-key into main

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
pulsar committed 2026-11-13 18:06:13 +00:00
commit e8553a3ec1
2 files changed
+7

No files matched your search

+3
View File
@@ -11,6 +11,9 @@ hcio_path: /srv/healthchecksio
hcio_url: ""
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
hcio_slug_prefix: "{{ inventory_hostname | replace('.', '_') }}-"
+4
View File
@@ -22,6 +22,8 @@
when: uuid | length <= 0
changed_when: true
register: created
# Hide the API key (task output and syslog on the instance)
no_log: "{{ hcio_no_log }}"
loop: "{{ hcio_checks }}"
loop_control:
label: "{{ item.name }}"
@@ -54,6 +56,8 @@
"channels": "{{ channels }}"
}
when: uuid | length > 0
# Hide the API key (task output and syslog on the instance)
no_log: "{{ hcio_no_log }}"
loop: "{{ hcio_checks }}"
loop_control:
label: "{{ item.name }}"