X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-lcm.git;a=blobdiff_plain;f=su%2Froles%2Fsu_prepare%2Ftasks%2Fmain.yml;h=63d51bab481330f6f6dae03996cd1f184051f3e5;hp=a0f01708fb59cfb4a058f6455d2f14bfcb919913;hb=f99db47cea8dd3fc87268c83f7e530d10d27456c;hpb=391e5329d2a5c525eb96cf9d4853cc1485cc51cd diff --git a/su/roles/su_prepare/tasks/main.yml b/su/roles/su_prepare/tasks/main.yml index a0f0170..63d51ba 100644 --- a/su/roles/su_prepare/tasks/main.yml +++ b/su/roles/su_prepare/tasks/main.yml @@ -28,6 +28,27 @@ line: "start_time: {{ start_time }}" become: true +- block: + - name: Compose the device path of swift volume on Openstack + set_fact: + swift_dev: "/dev/disk/by-id/virtio-{{ swift_volume }}" + + - name: Run what_is_the_filesystem.yml + include_role: + name: common_tasks + tasks_from: what_is_the_filesystem.yml + vars: + device: "{{swift_dev}}" + + - name: Mount the device + mount: + name: /srv/node/swift-update/ + src: "{{swift_dev}}" + fstype: "{{ filesystem_type.stdout | lower | default('ext4') }}" + state: mounted + become: true + when: swift_volume is defined and swift_volume != "" + - block: - name: Compose the device path of swift volume on BareMetal set_fact: