From 3301efb20f7a61f6c12087865e7d3c4737c15c18 Mon Sep 17 00:00:00 2001 From: liubo Date: Wed, 10 Apr 2019 17:17:46 +0800 Subject: [PATCH] Update os version limit (#732) (#733) * Update os version limit --- roles/check_system_static/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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