Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions playbooks/load_secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
- name: Process secrets via role
ansible.builtin.include_role:
name: load_secrets
rescue:
- name: "Print debugging command when secrets loading fails"
ansible.builtin.shell: |
printf "==> ERROR: Secret loading failed {{ ansible_failed_result.msg | default('Unknown error occurred') }}\n" > /dev/tty
printf "\n" > /dev/tty
printf "You can run the following command to debug:\n" > /dev/tty
printf "\n" > /dev/tty
printf " ANSIBLE_STDOUT_CALLBACK=default EXTRA_PLAYBOOK_OPTS='-vvv -e hide_sensitive_output=false' ./pattern.sh make load-secrets\n" > /dev/tty

- name: Print secret loading disabled message
ansible.builtin.shell: |
Expand Down
Loading