feat ensure nfs share folder exist
This commit is contained in:
parent
2db6061516
commit
e9ad317436
@ -6,6 +6,13 @@
|
||||
vars:
|
||||
# certbot_force: true
|
||||
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
|
||||
ansible.posix.mount:
|
||||
path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}"
|
||||
|
Loading…
Reference in New Issue
Block a user