feat ensure nfs share folder exist

This commit is contained in:
vincent 2024-02-04 21:23:17 +01:00
parent 2db6061516
commit e9ad317436

View File

@ -6,6 +6,13 @@
vars: vars:
# certbot_force: true # certbot_force: true
pre_tasks: pre_tasks:
- name: Ensure base NFS directory exist
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop: "{{ nfs_bind_source }}"
become: true
- name: Bind NFS export - name: Bind NFS export
ansible.posix.mount: ansible.posix.mount:
path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}" path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}"