]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: skip installing net-tools on atomic hosts
authorAndrew Schoen <aschoen@redhat.com>
Tue, 6 Dec 2016 20:23:12 +0000 (14:23 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 6 Dec 2016 20:58:07 +0000 (14:58 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/setup.yml

index 4bdf2304c493052f571ccdafbab7bdb2b58c0735..7062ac5cfab5b3a0e8ef454376f05fdfb095ea46 100644 (file)
@@ -5,7 +5,18 @@
   become: yes
   tasks:
 
-   - name: install net-tools
-     package:
-       name: net-tools
-       state: present
+    - name: check if it is Atomic host
+      stat: path=/run/ostree-booted
+      register: stat_ostree
+      always_run: true
+
+    - name: set fact for using Atomic host
+      set_fact:
+        is_atomic: '{{ stat_ostree.stat.exists }}'
+
+    - name: install net-tools
+      package:
+        name: net-tools
+        state: present
+      when:
+        - not is_atomic