mirror of https://github.com/ceph/ceph-ansible.git
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
parent
6dd9b25565
commit
779a4a6d71
|
@ -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: >
|
||||
|
|
Loading…
Reference in New Issue