Ansible_workstation/home.yml

84 lines
1.6 KiB
YAML
Raw Normal View History

---
- name: nas
hosts: nas
2022-06-01 14:24:25 +00:00
become: true
vars_files:
- vars/users.yml
- vars/home.yml
2022-05-18 09:24:44 +00:00
- vars/nas.yml
tasks:
- name: Update
apt:
update_cache: true
upgrade: true
2022-06-02 13:31:12 +00:00
# - name: Install core admin tools
# include_role:
# name: core
# - name: Include user
# include_role:
# name: "user"
# loop:
# - "{{ admin }}"
# loop_control:
# loop_var: user
# - name: Remove firstboot user
# ansible.builtin.user:
# name: foo
# state: absent
# remove: yes
# - name: Secure ssh
# include_role:
# name: ssh
2022-06-01 14:24:25 +00:00
- name: Set up nfs network shares server
2022-06-02 13:31:12 +00:00
include_role:
name: nfs_server
- name: Set up samba network shares
2022-06-02 15:54:32 +00:00
include_role:
name: samba_server
- name: Install docker
debug:
msg: Todo
- 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 nuts
debug:
msg: Todo
2022-06-01 14:24:25 +00:00
#- name: Set up collectd
# include_role:
# name: collectd
- name: backup
hosts: backup
vars_files:
- vars/home.yml
- vars/backup.yml
- vars/backup_secret.yml
tasks:
- name: NFS shares client
2022-04-02 06:14:33 +00:00
include_role:
name: nfs_client
- name: Set up borgmatic
2022-04-02 06:14:33 +00:00
include_role:
name: borgmatic
2022-04-02 06:14:33 +00:00
- name: Set up collectd
include_role:
name: collectd