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