diff --git a/tasks/main.yml b/tasks/main.yml index 30c0de4..43af1be 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -40,15 +40,16 @@ OS_REGION_NAME: "{{ OS_REGION_NAME }}" register: volume_output -- debug: var=volume_output -- ansible.builtin.meta: end_host - - name: Create a ext4 filesystem on {{ volume.name }} volume community.general.filesystem: fstype: ext4 dev: "{{ volume_output.attachments[0].device }}" + register: mkfs become: true +- debug: var=mkfs +- ansible.builtin.meta: end_host + - name: mount /mnt/volumes/{{ volume.name }} ansible.posix.mount: path: "/mnt/volumes/{{ volume.name }}"