-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#820 Ensure Ansible fails of apply global pull secret fails
- Loading branch information
1 parent
fc70d36
commit 9283f27
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
...tall-cloud-pak/cpfs/cp-ocp-global-pull-secret/tasks/apply-global-pull-secret-entitled.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
--- | ||
- name: Generate add-icr-cred-to-global-pull-secret command to set global pull secret for entitled registry | ||
set_fact: | ||
_add_icr_cred_globl_pull_secret_command: "{{ lookup('template','add-icr-cred-to-global-pull-secret.j2') }} " | ||
_add_icr_cred_global_pull_secret_command: "{{ lookup('template','add-icr-cred-to-global-pull-secret.j2') }} " | ||
|
||
- include_role: | ||
name: log-deployer-activity | ||
vars: | ||
_p_activity_description: "Set global pull secret for entitled registry" | ||
_p_activity_command: "{{ _add_icr_cred_globl_pull_secret_command }}" | ||
_p_activity_command: "{{ _add_icr_cred_global_pull_secret_command }}" | ||
|
||
- name: Set global pull secret for entitled registry, output is in {{ status_dir }}/log/add-icr-cred-to-global-pull-secret.log | ||
shell: | | ||
{{ _add_icr_cred_globl_pull_secret_command }} | tee -a {{ status_dir }}/log/add-icr-cred-to-global-pull-secret.log | ||
set -o pipefail | ||
{{ _add_icr_cred_global_pull_secret_command }} | tee -a {{ status_dir }}/log/add-icr-cred-to-global-pull-secret.log | ||
when: not cpd_dry_run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters