Skip to content

Commit

Permalink
tests: remove atomic and debian tasks
Browse files Browse the repository at this point in the history
We don't need the atomic fact and the debian related tasks because we
only test the containers on CentOS systems.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit db27a25)
  • Loading branch information
dsavineau committed Apr 15, 2020
1 parent e4e45f9 commit 35ea2c6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,12 @@
gather_facts: true
become: yes
tasks :
- name: check if it is Atomic host
stat: path=/run/ostree-booted
register: stat_ostree
check_mode: no

- name: set fact for using Atomic host
set_fact:
is_atomic: '{{ stat_ostree.stat.exists }}'

- name: install docker on redhat systems
package:
name: docker
state: present
when:
- ansible_os_family == 'RedHat'
- not is_atomic

- name: install docker.io on debian systems
package:
name: docker.io
state: present
when:
- ansible_os_family == 'Debian'
- not is_atomic

- name: allow nodes to use an insecure registry - docker
copy:
Expand Down

0 comments on commit 35ea2c6

Please sign in to comment.