Skip to content

Commit

Permalink
Override /etc/dnf/vars/releasever
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiethorpe authored Nov 21, 2024
1 parent 57d1d3c commit c1e8e74
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ansible/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1e8e74

Please sign in to comment.