Ensure libseccomp is installed before starting containerd on CentOS 8 (#6922)

* Ensure libseccomp is installed before starting containerd on CentOS 8

* Simplify libseccomp install on CentOS 8

- Uses `package` module
- Replaces complex version check with 'state: latest'. The version must
  be > 2.3 when using with cri-o.
- Removes unnecessary `not is_ostree` condition as CentOS 8 does not use
  ostree
This commit is contained in:
OwenTuz
2020-12-03 21:43:26 +00:00
committed by GitHub
parent 06ec5393d7
commit d315f73080
3 changed files with 22 additions and 10 deletions

View File

@@ -129,4 +129,13 @@
- not is_ostree
- not runc_stat.stat.exists
- name: Ensure latest version of libseccomp installed # noqa 403
package:
name: libseccomp
state: latest
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"
notify: restart containerd
- include_tasks: crictl.yml