Browse Source

Define ostree variable for runc (#9321)

The ostree variable is not defined previously raising an error when
the runtime tries to read it.
pull/9327/head
Victor Morales 2 years ago
committed by GitHub
parent
commit
782f0511b9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. 8
      roles/container-engine/runc/tasks/main.yml

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

Loading…
Cancel
Save