tests: don't install s3cmd on containerized setup

The s3cmd package should only be installed on non containerized
deployment.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/5054/head
Dimitri Savineau 2020-02-07 15:58:17 -05:00 committed by Guillaume Abrioux
parent 6dd9b25565
commit 779a4a6d71
1 changed files with 1 additions and 11 deletions

View File

@ -5,23 +5,13 @@
vars:
s3cmd_cmd: "s3cmd --no-ssl --access_key={{ system_access_key }} --secret_key={{ system_secret_key }} --host={{ rgw_multisite_endpoint_addr }}:8080 --host-bucket={{ rgw_multisite_endpoint_addr }}:8080"
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 s3cmd
package:
name: s3cmd
state: present
register: result
until: result is succeeded
when: not is_atomic | bool
when: not containerized_deployment | default(false) | bool
- name: generate and upload a random 10Mb file - containerized deployment
command: >