24 lines
499 B
YAML
24 lines
499 B
YAML
---
|
|
- name: gather all
|
|
hosts: all
|
|
- name: NAS playbook
|
|
hosts: NAS
|
|
vars:
|
|
# certbot_force: true
|
|
pre_tasks:
|
|
- name: Bind NFS export
|
|
ansible.posix.mount:
|
|
path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}"
|
|
src: "{{ item }}"
|
|
opts: bind
|
|
fstype: none
|
|
state: mounted
|
|
loop: "{{ nfs_bind_source }}"
|
|
become: true
|
|
roles:
|
|
- role: ansible-role-nfs
|
|
become: true
|
|
- role: ansible-role-vsftpd
|
|
become: true
|
|
#- samba
|