Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions roles/cephadm/tasks/pkg_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@
state: "{{ 'latest' if cephadm_package_update | bool else 'present' }}"
update_cache: true
become: true
timeout: 600
ignore_errors: true
register: cephadm_install
retries: 3
delay: 20

# NOTE(Alex-Welsh): The cephadm install task sometimes hangs indefinitely after
# the package is installed. This is a workaround to ensure the playbook
# completes properly.
- name: Ensure Cephadm package has installed properly
apt:
name: "cephadm"
state: "{{ 'latest' if cephadm_package_update | bool else 'present' }}"
update_cache: true
become: true
timeout: 60
when: cephadm_install is failed
19 changes: 19 additions & 0 deletions roles/cephadm/tasks/pkg_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,22 @@
state: "{{ 'latest' if cephadm_package_update | bool else 'present' }}"
update_cache: true
become: true
timeout: 600
ignore_errors: true
register: cephadm_install
retries: 3
delay: 20


# NOTE(Alex-Welsh): The cephadm install task sometimes hangs indefinitely after
# the package is installed. This is a workaround to ensure the playbook
# completes properly.
- name: Ensure Cephadm package has installed properly
dnf:
name: "cephadm"
install_weak_deps: false
state: "{{ 'latest' if cephadm_package_update | bool else 'present' }}"
update_cache: true
become: true
timeout: 60
when: cephadm_install is failed
Loading