# Initialise SDP
# ------------------------------------------------------------------
- name: Install SDP
hosts: all
user: ec2-user
vars:
filesystem:
- {'dev': '/dev/xvdh', 'mount': '/hxmetadata'}
- {'dev': '/dev/xvdi', 'mount': '/hxlogs'}
- {'dev': '/dev/xvdj', 'mount': '/hxdepots'}
tasks:
- name: copy Script file
copy:
src: check_filesystem.sh
dest: /tmp/
mode: 0755
become: yes
- name: Check filesystems
shell: /tmp/check_filesystem.sh {{item.dev}} {{item.mount}}
with_items: "{{filesystem}}"
become: yes
# sudo mkfs -t ext4 /dev/xvdh
# sudo mkfs -t ext4 /dev/xvdi
# sudo mkfs -t ext4 /dev/xvdj
# sudo mkdir /hxmetadata /hxlogs /hxdepots
# sudo mount /hxmetadata /dev/xvdh
# sudo mount /dev/xvdh /hxmetadata
# sudo mount /dev/xvdi /hxlogs
# sudo mount /dev/xvdj /hxdepots