Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retries to rke2-server and rke2-agent RPM install tasks #251

Merged
merged 1 commit into from
Jun 21, 2024
Merged
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 roles/rke2_common/tasks/rpm_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
ansible_facts['distribution_major_version'] == "8" or
ansible_facts['distribution_major_version'] == "9"

- name: YUM-Based | Install rke2-server

Check failure on line 33 in roles/rke2_common/tasks/rpm_install.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

fqcn[action-core]

Use FQCN for builtin module actions (ansible.builtin.yum).

Check failure on line 33 in roles/rke2_common/tasks/rpm_install.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

fqcn[action-core]

Use FQCN for builtin module actions (ansible.builtin.yum).
ansible.builtin.yum:
name: "rke2-server-{{ rke2_version_rpm }}"
state: latest # noqa package-latest
Expand All @@ -38,8 +38,12 @@
- ansible_facts['os_family'] == 'RedHat' or ansible_facts['os_family'] == 'Rocky'
- not rke2_binary_tarball_check.stat.exists
- inventory_hostname in groups['rke2_servers']
register: result
retries: 10
until: result is succeeded
delay: 30

- name: YUM-Based | Install rke2-agent

Check failure on line 46 in roles/rke2_common/tasks/rpm_install.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

fqcn[action-core]

Use FQCN for builtin module actions (ansible.builtin.yum).

Check failure on line 46 in roles/rke2_common/tasks/rpm_install.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

fqcn[action-core]

Use FQCN for builtin module actions (ansible.builtin.yum).
ansible.builtin.yum:
name: "rke2-agent-{{ rke2_version_rpm }}"
state: latest # noqa package-latest
Expand All @@ -47,3 +51,7 @@
- ansible_facts['os_family'] == 'RedHat' or ansible_facts['os_family'] == 'Rocky'
- not rke2_binary_tarball_check.stat.exists
- inventory_hostname in groups.get('rke2_agents', [])
register: result
retries: 10
until: result is succeeded
delay: 30
Loading