homelab/ansible/playbooks/nas.yml

29 lines
713 B
YAML
Raw Normal View History

2022-12-10 10:07:18 +00:00
---
2024-01-13 17:34:04 +00:00
- name: gather all
hosts: all
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:
2024-02-29 20:36:35 +00:00
- name: include task NasBind
ansible.builtin.include_tasks:
file: tasks/NasBind.yml
2024-02-20 18:31:36 +00:00
loop: "{{ nas_bind_source }}"
- name: create nomad folder
2024-02-20 18:31:36 +00:00
ansible.builtin.file:
path: "{{ nas_bind_target }}/nomad/{{ item.name }}"
owner: "{{ item.owner|default('root') }}"
state: directory
2024-03-10 13:37:00 +00:00
become: true
loop: "{{ NAS_nomad_folder }}"
2022-12-10 10:07:18 +00:00
roles:
2024-02-24 16:14:08 +00:00
- role: ansible-role-nut
2024-02-26 17:54:54 +00:00
become: true
2024-01-13 17:32:02 +00:00
- role: ansible-role-nfs
2023-11-15 18:24:32 +00:00
become: true
2024-03-11 19:28:01 +00:00
- role: ansible-role-pureftpd
2023-11-15 18:24:32 +00:00
become: true
2024-02-13 19:31:56 +00:00
- role: vladgh.samba.server
become: true