gather all device before nas playbook
This commit is contained in:
parent
6ddcc4736e
commit
9812376a1d
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
- name: gather all
|
||||||
|
hosts: all
|
||||||
- name: NAS playbook
|
- name: NAS playbook
|
||||||
hosts: NAS
|
hosts: NAS
|
||||||
vars:
|
vars:
|
||||||
@ -7,11 +9,12 @@
|
|||||||
- 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] }}"
|
||||||
src: "{{ items }}"
|
src: "{{ item }}"
|
||||||
opts: bind
|
opts: bind
|
||||||
fstype: none
|
fstype: none
|
||||||
state: mounted
|
state: mounted
|
||||||
loop: nfs_bind_source
|
loop: "{{ nfs_bind_source }}"
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-role-nfs
|
- role: ansible-role-nfs
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user