浏览代码

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

Don't attempt to install python-ruamel-yaml on atomic
Scott Dodson 8 年之前
父节点
当前提交
6490024590
共有 2 个文件被更改,包括 12 次插入0 次删除
  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