From: Andrew Schoen Date: Tue, 6 Dec 2016 20:23:12 +0000 (-0600) Subject: tests: skip installing net-tools on atomic hosts X-Git-Tag: v2.1.0~26^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e3521b0830cffdffcdd8f7742ebb53fc8c0e1634;p=ceph-ansible.git tests: skip installing net-tools on atomic hosts Signed-off-by: Andrew Schoen --- diff --git a/tests/functional/setup.yml b/tests/functional/setup.yml index 4bdf2304c..7062ac5cf 100644 --- a/tests/functional/setup.yml +++ b/tests/functional/setup.yml @@ -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