Skip to content

Commit e6736be

Browse files
committed
refactor ssh update from sig/security to work on existing fatimage
1 parent bce768c commit e6736be

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

ansible/bootstrap.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,21 @@
157157
tags:
158158
- update
159159
tasks:
160+
- name: Install SIG/security release repo
161+
dnf:
162+
name: rocky-release-security
163+
- name: Update openssh
164+
dnf:
165+
name:
166+
- openssh
167+
- openssh-askpass
168+
- openssh-clients
169+
- openssh-server
170+
state: latest
171+
update_only: true
172+
enablerepo:
173+
- security-common
174+
- meta: end_here
160175
- block:
161176
- name: Update selected packages
162177
yum:
@@ -167,14 +182,6 @@
167182
async: "{{ 30 * 60 }}" # wait for up to 30 minutes
168183
poll: 15 # check every 15 seconds
169184
register: updates
170-
- name: Install SIG/security release repo
171-
dnf:
172-
name: rocky-release-security
173-
- name: Upgrade openssh
174-
dnf:
175-
name: openssh*
176-
enablerepo:
177-
- security-common
178185
- name: Ensure update log directory on localhost exists
179186
file:
180187
path: "{{ update_log_path | dirname }}"

0 commit comments

Comments
 (0)