From b528772dfdfbaa4287c42287bd183e8a1317f1dc Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Thu, 22 Sep 2022 14:26:08 -0700 Subject: [PATCH] Define ostree variable for runc 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 94f97c0baf1..7a8e336c2f7 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 }}"