Define ostree variable for runc (#9321)

The ostree variable is not defined previously raising an error when
the runtime tries to read it.
This commit is contained in:
Victor Morales 2022-09-24 13:00:11 -07:00 committed by GitHub
parent fa093ee609
commit 782f0511b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"