Browse Source

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

Don't attempt to install python-ruamel-yaml on atomic
Scott Dodson 8 years ago
parent
commit
6490024590
2 changed files with 12 additions and 0 deletions
  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