diff --git a/roles/check_system_static/tasks/main.yml b/roles/check_system_static/tasks/main.yml index 54432335e..556c8b2b9 100644 --- a/roles/check_system_static/tasks/main.yml +++ b/roles/check_system_static/tasks/main.yml @@ -16,8 +16,8 @@ msg: "System versions lower than Red Hat Enterprise Linux / CentOS 7.3 have been deprecated. Please use CentOS 7.3 and above. See https://github.com/pingcap/docs/blob/master/op-guide/recommendation.md" when: - ansible_os_family == 'RedHat' - - ansible_distribution != 'Amazon' - - ansible_distribution_version < '7.3' + - ansible_distribution in ['CentOS', 'RedHat'] + - ansible_distribution_major_version != '7' - name: Deploy epollexclusive script copy: src="{{ script_dir }}/check/epollexclusive" dest="{{ deploy_dir }}/epollexclusive" mode=0755