tests: skip installing net-tools on atomic hosts

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1150/head
Andrew Schoen 2016-12-06 14:23:12 -06:00
parent 4323607c2e
commit e3521b0830
1 changed files with 15 additions and 4 deletions

View 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