Define ostree variable for runc (#9417)

The ostree variable is not defined previously raising an error when
the runtime tries to read it.

Co-authored-by: Victor Morales <chipahuac@hotmail.com>
This commit is contained in:
Jeroen
2022-10-24 06:22:25 +02:00
committed by GitHub
parent 63e3f4dea9
commit b75ee0b111

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 - name: runc | set is_ostree
set_fact: set_fact:
is_ostree: "{{ ostree.stat.exists }}" is_ostree: "{{ ostree.stat.exists }}"