2022-03-13 13:39:34 +00:00
|
|
|
---
|
2022-05-14 04:45:47 +00:00
|
|
|
- name: nas
|
|
|
|
hosts: nas
|
2022-06-01 14:24:25 +00:00
|
|
|
become: true
|
2022-05-14 04:45:47 +00:00
|
|
|
vars_files:
|
|
|
|
- vars/users.yml
|
|
|
|
- vars/home.yml
|
2022-05-18 09:24:44 +00:00
|
|
|
- vars/nas.yml
|
2022-06-04 04:08:05 +00:00
|
|
|
|
|
|
|
pre_tasks:
|
2022-05-14 04:45:47 +00:00
|
|
|
- name: Update
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
|
2022-06-04 04:08:05 +00:00
|
|
|
roles:
|
|
|
|
- role: core
|
2022-05-14 04:45:47 +00:00
|
|
|
|
2022-06-04 04:08:05 +00:00
|
|
|
- role: ssh
|
|
|
|
tags:
|
|
|
|
- ssh
|
2022-06-03 03:39:23 +00:00
|
|
|
|
2022-06-04 04:08:05 +00:00
|
|
|
- role: samba_server
|
|
|
|
tags:
|
|
|
|
- samba_server
|
2022-05-14 04:45:47 +00:00
|
|
|
|
2022-06-04 04:08:05 +00:00
|
|
|
- role: nfs_server
|
|
|
|
tags:
|
|
|
|
- nfs_server
|
|
|
|
|
|
|
|
- role: nut
|
|
|
|
tags:
|
|
|
|
- nut
|
|
|
|
|
|
|
|
- role: geerlingguy.docker
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
2022-08-18 19:42:48 +00:00
|
|
|
- role: mpd
|
2022-06-04 04:36:34 +00:00
|
|
|
tags:
|
2022-08-18 19:42:48 +00:00
|
|
|
- mpd
|
2022-06-04 04:36:34 +00:00
|
|
|
|
2022-06-05 07:05:48 +00:00
|
|
|
- role: minidlna
|
|
|
|
tags:
|
|
|
|
- minidlna
|
|
|
|
|
2022-06-04 04:08:05 +00:00
|
|
|
tasks:
|
|
|
|
- name: Include user
|
|
|
|
include_role:
|
|
|
|
name: "user"
|
|
|
|
loop:
|
|
|
|
- "{{ admin }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: user
|
|
|
|
tags:
|
|
|
|
- user
|
|
|
|
|
|
|
|
- name: Remove firstboot user
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: foo
|
|
|
|
state: absent
|
|
|
|
remove: yes
|
|
|
|
tags:
|
|
|
|
- user
|
2022-05-14 04:45:47 +00:00
|
|
|
|
|
|
|
- name: Set up monitoring server
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up homeassistant
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
|
2022-06-01 14:24:25 +00:00
|
|
|
#- name: Set up collectd
|
|
|
|
# include_role:
|
|
|
|
# name: collectd
|
2022-05-14 04:45:47 +00:00
|
|
|
|
2022-03-13 13:39:34 +00:00
|
|
|
- name: backup
|
|
|
|
hosts: backup
|
|
|
|
vars_files:
|
2022-05-14 04:45:47 +00:00
|
|
|
- vars/home.yml
|
2022-03-13 13:39:34 +00:00
|
|
|
- vars/backup.yml
|
|
|
|
- vars/backup_secret.yml
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: NFS shares client
|
2022-04-02 06:14:33 +00:00
|
|
|
include_role:
|
2022-03-13 13:39:34 +00:00
|
|
|
name: nfs_client
|
|
|
|
|
|
|
|
- name: Set up borgmatic
|
2022-04-02 06:14:33 +00:00
|
|
|
include_role:
|
2022-03-13 13:39:34 +00:00
|
|
|
name: borgmatic
|
|
|
|
|
2022-04-02 06:14:33 +00:00
|
|
|
- name: Set up collectd
|
|
|
|
include_role:
|
|
|
|
name: collectd
|