2022-03-13 13:39:34 +00:00
|
|
|
---
|
2022-05-14 04:45:47 +00:00
|
|
|
- name: nas
|
|
|
|
hosts: nas
|
|
|
|
vars_files:
|
|
|
|
- vars/users.yml
|
|
|
|
- vars/home.yml
|
|
|
|
tasks:
|
|
|
|
- name: Update
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
|
|
|
|
- name: Include user
|
|
|
|
include_role:
|
|
|
|
name: "user"
|
|
|
|
loop:
|
|
|
|
- "{{ admin }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: user
|
|
|
|
|
|
|
|
- name: Set up nfs network shares server
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up samba network shares
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Install docker
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up monitoring server
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up homeassistant
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up mdp
|
|
|
|
debug:
|
|
|
|
msg: Todo
|
|
|
|
|
|
|
|
- name: Set up collectd
|
|
|
|
include_role:
|
|
|
|
name: collectd
|
|
|
|
|
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
|
2022-05-14 04:45:47 +00:00
|
|
|
|