From c1e8e742bc0427e5884d0e8f07adf5570df01bb8 Mon Sep 17 00:00:00 2001 From: bertiethorpe <84867280+bertiethorpe@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:57:42 +0000 Subject: [PATCH] Override /etc/dnf/vars/releasever --- ansible/bootstrap.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ansible/bootstrap.yml b/ansible/bootstrap.yml index eedbfc29a..cf7953eda 100644 --- a/ansible/bootstrap.yml +++ b/ansible/bootstrap.yml @@ -3,13 +3,14 @@ - hosts: all become: yes tasks: - - name: Ensure releasever is pinned to 9.4 for RL9 - lineinfile: - path: /etc/dnf/dnf.conf - regexp: '^releasever=' - line: 'releasever=9.4' - insertafter: '^\[main\]' + - name: Override /etc/dnf/vars/releasever with "9.4" + ansible.builtin.lineinfile: + path: /etc/dnf/vars/releasever + line: "9.4" create: yes + owner: root + group: root + mode: '0644' when: ansible_distribution_major_version == "9" - hosts: cluster