Skip to content

Commit

Permalink
Peform DNF update on edpm node via bootstrap_role
Browse files Browse the repository at this point in the history
In baremetal EDPM job, we use EDPM image to create EDPM node.
It has all the required packages pre-installed during image build process.

If an older version of package got included during the image build process.
Then during edpm_deploy, bootstrap role is not going to update the package to latest.

Performing a dnf update will update all the system packages and avoid
such issues.

Signed-off-by: Chandan Kumar <raukadah@gmail.com>
  • Loading branch information
raukadah committed Dec 14, 2023
1 parent e53be77 commit 1601042
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/edpm_bootstrap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@

- name: Import bootstrap tasks
ansible.builtin.import_tasks: bootstrap.yml

- name: Perform system update
become: true
ansible.builtin.dnf:
name: "*"
state: latest # noqa package-latest

0 comments on commit 1601042

Please sign in to comment.