We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d1d3c commit c1e8e74Copy full SHA for c1e8e74
ansible/bootstrap.yml
@@ -3,13 +3,14 @@
3
- hosts: all
4
become: yes
5
tasks:
6
- - name: Ensure releasever is pinned to 9.4 for RL9
7
- lineinfile:
8
- path: /etc/dnf/dnf.conf
9
- regexp: '^releasever='
10
- line: 'releasever=9.4'
11
- insertafter: '^\[main\]'
+ - name: Override /etc/dnf/vars/releasever with "9.4"
+ ansible.builtin.lineinfile:
+ path: /etc/dnf/vars/releasever
+ line: "9.4"
12
create: yes
+ owner: root
+ group: root
13
+ mode: '0644'
14
when: ansible_distribution_major_version == "9"
15
16
- hosts: cluster
0 commit comments