gather all device before nas playbook

This commit is contained in:
vincent 2024-01-13 18:34:04 +01:00
parent 6ddcc4736e
commit 9812376a1d

View File

@ -1,4 +1,6 @@
---
- name: gather all
hosts: all
- name: NAS playbook
hosts: NAS
vars:
@ -7,11 +9,12 @@
- name: Bind NFS export
ansible.posix.mount:
path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}"
src: "{{ items }}"
src: "{{ item }}"
opts: bind
fstype: none
state: mounted
loop: nfs_bind_source
loop: "{{ nfs_bind_source }}"
become: true
roles:
- role: ansible-role-nfs
become: true