Skip to content

Commit

Permalink
PMM-12566 Better handling of errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Nov 26, 2024
1 parent 599f329 commit 4d00064
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions build/ansible/roles/initialization/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,22 @@
method: GET
retries: 20
delay: 5
register: pmm_ready
until: pmm_ready.status == 200
ignore_errors: true

- name: Initialize admin password for AMI if needed
include_role:
name: init-admin-password-ami
when: need_initialization and is_ami
when: need_initialization or need_upgrade

- name: Disable maintenance mode
file:
state: absent
path: /usr/share/pmm-server/maintenance/maintenance.html
- name: Disable maintenance mode
file:
state: absent
path: /usr/share/pmm-server/maintenance/maintenance.html

- name: Remove the file provisioned by 'getStatus'
file:
state: absent
path: /srv/pmm-update.json
when: need_initialization or need_upgrade
- name: Remove the file provisioned by 'getStatus'
file:
state: absent
path: /srv/pmm-update.json

0 comments on commit 4d00064

Please sign in to comment.