aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/minio-bin/tasks
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-12-21 10:59:27 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-12-21 10:59:27 +0100
commita4bcb2caba43bf10700025f936d21717fa737977 (patch)
tree6e789e75c48308277947a6f13748de38ac4269da /ansible/roles/minio-bin/tasks
parent36183579aa48bd9207237ac69d666f0f222cfc1d (diff)
downloadinfra-a4bcb2caba43bf10700025f936d21717fa737977.tar.gz
infra-a4bcb2caba43bf10700025f936d21717fa737977.tar.bz2
infra-a4bcb2caba43bf10700025f936d21717fa737977.tar.xz
infra-a4bcb2caba43bf10700025f936d21717fa737977.zip
o Adding minio.
Diffstat (limited to 'ansible/roles/minio-bin/tasks')
-rw-r--r--ansible/roles/minio-bin/tasks/main.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/minio-bin/tasks/main.yml b/ansible/roles/minio-bin/tasks/main.yml
new file mode 100644
index 0000000..98c16e9
--- /dev/null
+++ b/ansible/roles/minio-bin/tasks/main.yml
@@ -0,0 +1,33 @@
+- become: yes
+ tags: minio-bin
+ when: minio_bin__minio_state == 'present'
+ get_url:
+ url: "https://dl.minio.io/server/minio/release/{{ _minio_bin__platform }}/archive/minio.{{ minio_bin__minio_version }}"
+ checksum: "sha1:{{ minio_bin__minio_sha1 }}"
+ dest: "{{ minio_bin__minio_path }}"
+ remote_src: yes
+ mode: u=rwx,go=rx
+
+- become: yes
+ tags: minio-bin
+ when: minio_bin__minio_state != 'present'
+ file:
+ path: "{{ minio_bin__minio_path }}"
+ state: absent
+
+- become: yes
+ tags: minio-bin
+ when: minio_bin__mc_state == 'present'
+ get_url:
+ url: "https://dl.minio.io/client/mc/release/{{ _minio_bin__platform }}/archive/mc.{{ minio_bin__mc_version }}"
+ checksum: "sha1:{{ minio_bin__mc_sha1 }}"
+ dest: "{{ minio_bin__mc_path }}"
+ remote_src: yes
+ mode: u=rwx,go=rx
+
+- become: yes
+ tags: minio-bin
+ when: minio_bin__mc_state != 'present'
+ file:
+ path: "{{ minio_bin__mc_path }}"
+ state: absent