Explorar o código

Merge pull request #3395 from sdodson/ruamel-yaml-atomic

Don't attempt to install python-ruamel-yaml on atomic
Scott Dodson %!s(int64=8) %!d(string=hai) anos
pai
achega
6490024590
Modificáronse 2 ficheiros con 12 adicións e 0 borrados
  1. 6 0
      roles/lib_openshift/tasks/main.yml
  2. 6 0
      roles/lib_utils/tasks/main.yml

+ 6 - 0
roles/lib_openshift/tasks/main.yml

@@ -1,5 +1,11 @@
 ---
+- name: lib_openshift detect ostree
+  stat:
+    path: /run/ostree-booted
+  register: ostree_booted
+
 - name: lib_openshift ensure python-ruamel-yaml package is on target
   package:
     name: python-ruamel-yaml
     state: present
+  when: not ostree_booted.stat.exists

+ 6 - 0
roles/lib_utils/tasks/main.yml

@@ -1,5 +1,11 @@
 ---
+- name: lib_utils detect ostree
+  stat:
+    path: /run/ostree-booted
+  register: ostree_booted
+
 - name: lib_utils ensure python-ruamel-yaml package is on target
   package:
     name: python-ruamel-yaml
     state: present
+  when: not ostree_booted.stat.exists