Try fix.
This commit is contained in:
parent
0836b00108
commit
1695674d00
@ -47,18 +47,17 @@
|
||||
become: true
|
||||
|
||||
- setup:
|
||||
register: dfacts
|
||||
- debug: var=dfacts
|
||||
- ansible.builtin.meta: end_host
|
||||
|
||||
- name: mount /mnt/volumes/{{ volume.name }}
|
||||
ansible.posix.mount:
|
||||
path: "/mnt/volumes/{{ volume.name }}"
|
||||
src: "{{ volume_output.attachments[0].device }}"
|
||||
src: "{{ ansible_facts['ansible_device_links']['uuids'][volume_output.attachments[0].device.split('/')[-1]][0] }}"
|
||||
fstype: ext4
|
||||
state: mounted
|
||||
become: true
|
||||
|
||||
- ansible.builtin.meta: end_host
|
||||
|
||||
- name: Create /mnt/volumes/{{ volume.name }}/data directory
|
||||
ansible.builtin.file:
|
||||
path: "/mnt/volumes/{{ volume.name }}/data"
|
||||
|
Loading…
Reference in New Issue
Block a user