File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
+ - name : Ensure config-manager is present for dnf
4
+ package :
5
+ name : dnf-plugins-core
6
+ state : present
7
+ when :
8
+ - ansible_os_family | lower == 'redhat'
9
+ - ansible_distribution_major_version is version('8', '>=')
10
+
3
11
- name : Enable HighAvailability repository
4
- command : dnf config-manager --enable ha
12
+ command : " dnf config-manager --enable {{ _centos_ha_repo_name[ansible_facts['distribution_major_version']] }} "
5
13
changed_when : false
6
14
args :
7
15
warn : false
8
16
when :
9
17
- ansible_os_family | lower == 'redhat'
10
- - ansible_distribution_major_version is version('8', '=')
11
18
12
19
- name : Installs corosync
13
20
package :
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
_pacemaker_remote_group_exists : " {{ (pacemaker_remote_group is defined and pacemaker_remote_group in groups) }}"
4
+
5
+ _centos_ha_repo_name :
6
+ ' 8 ' : ha
7
+ ' 9 ' : highavailability
You can’t perform that action at this time.
0 commit comments