Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Liubo/check os version #726

Merged
merged 2 commits into from
Apr 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion roles/check_system_static/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
- name: Preflight check - Linux OS family and distribution version
fail:
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' and ansible_distribution_version < '7.3'"
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != 'Amazon'
- ansible_distribution_version < '7.3'

- name: Deploy epollexclusive script
copy: src="{{ script_dir }}/check/epollexclusive" dest="{{ deploy_dir }}/epollexclusive" mode=0755
Expand Down