Skip to content

Commit

Permalink
Fix containerd install for fcos
Browse files Browse the repository at this point in the history
  • Loading branch information
mafn committed Oct 25, 2021
1 parent d8d01bf commit 169974f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/container-engine/runc/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---

runc_bin_dir: /usr/bin/
runc_bin_dir: "{{ bin_dir }}"

runc_package_name: runc
6 changes: 6 additions & 0 deletions roles/container-engine/runc/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
- name: runc | set is_ostree
set_fact:
is_ostree: "{{ ostree.stat.exists }}"

- name: runc | Uninstall runc package managed by package manager
package:
name: "{{ runc_package_name }}"
state: absent
when:
- not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))

- name: runc | Download runc binary
include_tasks: "../../../download/tasks/download_file.yml"
Expand Down
2 changes: 1 addition & 1 deletion roles/kubespray-defaults/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ haproxy_config_dir: "/etc/haproxy"
# Directory where the binaries will be installed
bin_dir: /usr/local/bin
docker_bin_dir: /usr/bin
containerd_bin_dir: /usr/bin
containerd_bin_dir: "{{ bin_dir }}"
etcd_data_dir: /var/lib/etcd
# Where the binaries will be downloaded.
# Note: ensure that you've enough disk space (about 1G)
Expand Down

0 comments on commit 169974f

Please sign in to comment.