From 1a4a08e21ad29f5db4390f21362d23b01928fa02 Mon Sep 17 00:00:00 2001
From: Scott Dodson <sdodson@redhat.com>
Date: Thu, 16 Feb 2017 20:28:16 -0500
Subject: Don't attempt to install python-ruamel-yaml on atomic

---
 roles/lib_utils/tasks/main.yml | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'roles/lib_utils')

diff --git a/roles/lib_utils/tasks/main.yml b/roles/lib_utils/tasks/main.yml
index 8a350da88..32ab9e0c6 100644
--- a/roles/lib_utils/tasks/main.yml
+++ b/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
-- 
cgit v1.2.3