nfs: also refactor code, not only inventory

This commit is contained in:
Nico Schottelius 2024-02-19 12:27:08 +09:00
parent 9ef07c8aa4
commit 047ff4793e

View file

@ -1,10 +1,10 @@
- name: Mount data NFS volume - name: Mount data NFS volume
ansible.posix.mount: ansible.posix.mount:
src: 10.165.71.1:/mtx_syna_lat_internal_ru src: "{{ item.src }}"
path: /mnt path: "{{ item.path }}"
state: mounted state: mounted
fstype: nfs fstype: nfs
when: nfs.enabled == true loop: "{{ nfs.mounts }}"
- name: Create docker-compose project directories - name: Create docker-compose project directories
ansible.builtin.file: ansible.builtin.file:
path: /mnt/synapse_data path: /mnt/synapse_data