mirror of https://github.com/ceph/ceph-ansible.git
tests: skip installing net-tools on atomic hosts
Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1150/head
parent
4323607c2e
commit
e3521b0830
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue