infra-prod: don't encrypt logs if they are being published
If this flag is set, the logs are copied into the published job. There's no need to save an encrypted copy of the same thing. Change-Id: I32ac5e0ac4d2307f2e1df88c5e2ccbe2fd381839
This commit is contained in:
parent
00f6d27561
commit
03e59aa981
@ -5,7 +5,9 @@
|
|||||||
- hosts: prod_bastion[0]
|
- hosts: prod_bastion[0]
|
||||||
tasks:
|
tasks:
|
||||||
- name: Encrypt log
|
- name: Encrypt log
|
||||||
when: infra_prod_playbook_encrypt_log|default(False)
|
when: >
|
||||||
|
infra_prod_playbook_encrypt_log|default(False) and
|
||||||
|
(not infra_prod_playbook_collect_log)
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Create temporary staging area for encrypted logs
|
- name: Create temporary staging area for encrypted logs
|
||||||
|
Loading…
Reference in New Issue
Block a user