Skip to content

Commit

Permalink
allowing rpm downgrade and forcing handlers on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Leiner committed Jul 12, 2024
1 parent 0c36930 commit aa42bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ host_key_checking = False
deprecation_warnings = False
callback_whitelist = profile_roles, timer
display_skipped_hosts = no
force_handlers = True
3 changes: 2 additions & 1 deletion roles/rke2/tasks/rpm_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
- name: YUM-Based Install
ansible.builtin.dnf:
name: "{{ service_name }}-{{ rke2_version_rpm }}"
state: latest # noqa package-latest
state: installed
allow_downgrade: true
register: result
retries: 10
until: result is succeeded
Expand Down

0 comments on commit aa42bf5

Please sign in to comment.