Skip to content

Commit a7d8032

Browse files
lmiccinidanpawlik
authored andcommitted
Add variable to turn off artifact masking
1 parent ff07546 commit a7d8032

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

roles/artifacts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ None - writes happen only in the user home.
1313
* `cifmw_artifacts_crc_sshkey_ed25519`: (String) Path to the private SSH key to connect to CRC (newer CRC images). Defaults to `~/.crc/machines/crc/id_ed25519`.
1414
* `cifmw_artifacts_gather_logs`: (Boolean) Enables must-gather logs fetching. Defaults to `true`
1515
* `cifmw_artifacts_gather_edpm_logs`: (Boolean) Enables edpm logs fetching. Defaults to `true`
16+
* `cifmw_artifacts_mask_logs`: (Boolean) Enables artifacts and logs masking. Defaults to `true`
1617

1718
## Examples
1819
Usually we'll import the role as-is at the very start of the playbook, and

roles/artifacts/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ cifmw_artifacts_crc_user: "core"
2323
cifmw_artifacts_crc_sshkey: "~/.crc/machines/crc/id_ecdsa"
2424
cifmw_artifacts_crc_sshkey_ed25519: "~/.crc/machines/crc/id_ed25519"
2525
cifmw_artifacts_gather_logs: true
26+
cifmw_artifacts_mask_logs: true

roles/artifacts/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
find {{ cifmw_artifacts_basedir }}/artifacts -type d -exec chmod 0755 '{}' \;
9292
9393
- name: Mask secrets in yaml log files
94+
when: cifmw_artifacts_mask_logs |bool
9495
ignore_errors: true # noqa: ignore-errors
9596
timeout: 3600
9697
crawl_n_mask:

0 commit comments

Comments
 (0)