Files
openstack-helm/roles/deploy-env/tasks/loopback_devices_mount.yaml
Vladimir Kozhukalov 0693074879 Add loopback devices format and mount
The deploy-env role provides the capabilities
to create loopback devices that we currently use
for test ceph deployment.

For testing Swift chart we also need to be able
to format and mount loopback devices.

Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com>
Change-Id: I4fa5db21b4d3149587cdc7e44888fe60512df8c0
2026-02-11 14:52:21 -06:00

28 lines
888 B
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: Format loop device
filesystem:
fstype: "{{ loopback_format_fs_type }}"
dev: "{{ loopback_device }}"
when: loopback_format
- name: Mount loop device
mount:
src: "{{ loopback_device }}"
path: "{{ loopback_mount_path }}"
fstype: "{{ loopback_format_fs_type }}"
state: mounted
when: loopback_mount
...