|
@@ -37,12 +37,12 @@
|
|
|
|
|
|
- name: create re home dir
|
|
|
file:
|
|
|
- state=directory
|
|
|
- path="/redis"
|
|
|
+ state: directory
|
|
|
+ path: "/redis"
|
|
|
- name: create ephemeral filesystem
|
|
|
filesystem:
|
|
|
- fstype=ext4
|
|
|
- dev="/dev/xvdh"
|
|
|
+ fstype: ext4
|
|
|
+ dev: "/dev/xvdh"
|
|
|
- name: mount ephemeral dir filesystem
|
|
|
mount:
|
|
|
name: /redis/ephemeral
|
|
@@ -51,8 +51,8 @@
|
|
|
state: mounted
|
|
|
- name: create persistant filesystem
|
|
|
filesystem:
|
|
|
- fstype=ext4
|
|
|
- dev="/dev/xvdj"
|
|
|
+ fstype: ext4
|
|
|
+ dev: "/dev/xvdj"
|
|
|
- name: mount persistant dir filesystem
|
|
|
mount:
|
|
|
name: /redis/persistant
|
|
@@ -60,4 +60,17 @@
|
|
|
fstype: ext4
|
|
|
state: mounted
|
|
|
|
|
|
-
|
|
|
+ tasks:
|
|
|
+ - name: create download directory
|
|
|
+ file:
|
|
|
+ state: directory
|
|
|
+ path: "/var/tmp/re-download"
|
|
|
+ # - name: download RE software
|
|
|
+ # get_url:
|
|
|
+ # url: https://s3.amazonaws.com/redis-enterprise-software-downloads/5.4.2/redislabs-5.4.2-20-bionic-amd64.tar
|
|
|
+ # dest: /var/tmp/re-download/redislabs-5.4.2-20-bionic-amd64.tar
|
|
|
+ - name: Unarchive software
|
|
|
+ unarchive:
|
|
|
+ src: "https://s3.amazonaws.com/redis-enterprise-software-downloads/5.4.2/redislabs-5.4.2-20-bionic-amd64.tar"
|
|
|
+ dest: /var/tmp/re-download
|
|
|
+ remote_src: yes
|