homelab/ansible/playbooks/nas.yml

21 lines
441 B
YAML
Raw Normal View History

2022-12-10 10:07:18 +00:00
---
2024-01-13 17:32:02 +00:00
- name: NAS playbook
hosts: NAS
2022-12-10 10:07:18 +00:00
vars:
# certbot_force: true
2024-01-13 17:32:02 +00:00
pre_tasks:
- name: Bind NFS export
ansible.posix.mount:
path: "{{ nfs_bind_target }}/{{ item.split('/')[-1] }}"
src: "{{ items }}"
opts: bind
fstype: none
state: mounted
loop: nfs_bind_source
2022-12-10 10:07:18 +00:00
roles:
2024-01-13 17:32:02 +00:00
- role: ansible-role-nfs
2023-11-15 18:24:32 +00:00
become: true
2024-01-13 17:32:02 +00:00
- role: ansible-role-vsftpd
2023-11-15 18:24:32 +00:00
become: true
2022-12-10 10:07:18 +00:00
#- samba