From 782f0511b9666dbe63c3a05c068a9ef55aa155ef Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Sat, 24 Sep 2022 13:00:11 -0700 Subject: [PATCH] Define ostree variable for runc (#9321) The ostree variable is not defined previously raising an error when the runtime tries to read it. --- roles/container-engine/runc/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/container-engine/runc/tasks/main.yml b/roles/container-engine/runc/tasks/main.yml index 94f97c0ba..7a8e336c2 100644 --- a/roles/container-engine/runc/tasks/main.yml +++ b/roles/container-engine/runc/tasks/main.yml @@ -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 }}"