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 11---
22
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+
311- 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']] }} "
513 changed_when : false
614 args :
715 warn : false
816 when :
917 - ansible_os_family | lower == 'redhat'
10- - ansible_distribution_major_version is version('8', '=')
1118
1219- name : Installs corosync
1320 package :
Original file line number Diff line number Diff line change 11---
22
33_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