Add debug.

This commit is contained in:
yohan 2024-10-19 21:49:05 +02:00
parent de43ce1b63
commit 1fce7d07f5

View File

@ -40,15 +40,16 @@
OS_REGION_NAME: "{{ OS_REGION_NAME }}" OS_REGION_NAME: "{{ OS_REGION_NAME }}"
register: volume_output register: volume_output
- debug: var=volume_output
- ansible.builtin.meta: end_host
- name: Create a ext4 filesystem on {{ volume.name }} volume - name: Create a ext4 filesystem on {{ volume.name }} volume
community.general.filesystem: community.general.filesystem:
fstype: ext4 fstype: ext4
dev: "{{ volume_output.attachments[0].device }}" dev: "{{ volume_output.attachments[0].device }}"
register: mkfs
become: true become: true
- debug: var=mkfs
- ansible.builtin.meta: end_host
- name: mount /mnt/volumes/{{ volume.name }} - name: mount /mnt/volumes/{{ volume.name }}
ansible.posix.mount: ansible.posix.mount:
path: "/mnt/volumes/{{ volume.name }}" path: "/mnt/volumes/{{ volume.name }}"