forked from timhourigan/homelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
53 lines (50 loc) · 1.26 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- hosts: all
become: true
pre_tasks:
- name: Update packages
apt:
update_cache: yes
cache_valid_time: 3600
name: "*"
state: latest
when: ansible_os_family == "Debian"
- hosts: proxmox
become: false
vars_files:
- default.config.yml
- vars/config.yml
pre_tasks:
- name: Include playbook configuration
include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/vars/config.yml"
- "{{ playbook_dir }}/{{ lookup('env','USER') }}.yml"
tags: ['always']
tasks:
- import_tasks: tasks/access.yml
- import_tasks: tasks/proxmox.yml
- hosts:
- apps
- pihole
become: true
vars_files:
- default.config.yml
pre_tasks:
- name: Include playbook configuration
include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
- "{{ playbook_dir }}/{{ lookup('env','USER') }}.yml"
tags: ['always']
tasks:
- import_tasks: tasks/docker.yml
- import_tasks: tasks/proxmox_vm.yml
- hosts: apps
become: true
tasks:
- import_tasks: tasks/paperless.yml
- import_tasks: tasks/homer.yml
- import_tasks: tasks/uptime_kuma.yml
- import_tasks: tasks/tandoor.yml
- import_tasks: tasks/nextcloud.yml