remove atomic support because reached end of live (#5783)

This commit is contained in:
spaced
2020-03-17 22:31:27 +01:00
committed by GitHub
parent 820d8e6ce6
commit 8ce5a9dd19
14 changed files with 27 additions and 87 deletions

View File

@@ -1,4 +1,14 @@
---
- name: check if fedora coreos
stat:
path: /run/ostree-booted
register: ostree
- name: set is_ostree
set_fact:
is_ostree: "{{ ostree.stat.exists }}"
- name: Fail containerd setup if distribution is not supported
fail:
msg: "{{ ansible_distribution }} is not supported by containerd."
@@ -25,6 +35,7 @@
- facts
- include_tasks: containerd_repo.yml
when: not is_ostree
- name: Create containerd service systemd directory if it doesn't exist
file:
@@ -63,7 +74,7 @@
mode: 0644
when:
- ansible_os_family in ['Ubuntu', 'Debian']
- not is_atomic
- not is_ostree
- name: ensure containerd packages are installed
action: "{{ containerd_package_info.pkg_mgr }}"
@@ -80,7 +91,7 @@
with_items: "{{ containerd_package_info.pkgs }}"
notify: restart containerd
when:
- not is_atomic
- not is_ostree
- containerd_package_info.pkgs|length > 0
ignore_errors: true
@@ -101,7 +112,7 @@
delay: "{{ retry_stagger | d(3) }}"
notify: restart containerd
when:
- not is_atomic
- not is_ostree
- not runc_stat.stat.exists
- include_tasks: crictl.yml