Skip to content

Commit

Permalink
Define ostree variable for runc (kubernetes-sigs#9321)
Browse files Browse the repository at this point in the history
The ostree variable is not defined previously raising an error when
the runtime tries to read it.
  • Loading branch information
electrocucaracha authored and enneitex committed Jan 25, 2023
1 parent 71f81b2 commit 95a97c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/container-engine/runc/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
- name: runc | check if fedora coreos
stat:
path: /run/ostree-booted
get_attributes: no
get_checksum: no
get_mime: no
register: ostree

- name: runc | set is_ostree
set_fact:
is_ostree: "{{ ostree.stat.exists }}"
Expand Down

0 comments on commit 95a97c2

Please sign in to comment.