File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
resources/roles/preparation/tasks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424- name : Re-define procps package name
2525 set_fact :
2626 procps_pkg : " procps-ng"
27- when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version > '6' "
27+ when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int > 6 "
2828
2929- set_fact :
3030 additional_packages :
3737 pip_packages :
3838 - python3-pip
3939 - python3-setuptools
40- when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version >= '8' "
40+ when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int >= 8 "
4141
4242- set_fact :
4343 pip_packages :
4444 - python-pip
4545 - python-setuptools
46- when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version < '8' "
46+ when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int < 8 "
4747
4848- name : Add os and updates repositories for version 6
4949 yum_repository :
115115 name : epel-release
116116 state : present
117117 lock_timeout : 300
118- when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version >= '8' "
118+ when : " ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int >= 8 "
119119
120120- name : Install epel-release (7 and less)
121121 yum :
You can’t perform that action at this time.
0 commit comments