infrastructure/ansible/main.yml
Jake Howard 6b95b75fc2
Move telegraf to host
This makes metric collection for SMART much simpler. I'll still be using the prometheus node exporter for actual system metrics, though.
2021-03-05 20:39:11 +00:00

88 lines
1.5 KiB
YAML

- hosts: all
roles:
- base
- role: realorangeone.reflector
when: ansible_os_family == 'Archlinux'
- hosts: casey
roles:
- gateway
- nebula
- hosts:
- pve
- casey
- grimes
- ingress
- deluge
roles:
- role: geerlingguy.ntp
become: true
vars:
ntp_timezone: "{{ TZ }}"
ntp_manage_config: true
when: ansible_os_family != 'Alpine' # https://github.com/ansible-collections/community.general/issues/781
- hosts:
- grimes
- pve-docker
- deluge
- forrest
roles:
- role: geerlingguy.docker
become: true
vars:
docker_install_compose: "{{ ansible_os_family == 'Debian' }}"
docker_package: "{{ 'docker-ce' if ansible_os_family == 'Debian' else 'docker' }}"
docker_users:
- "{{ user }}"
- docker_cleanup
- hosts:
- grimes
- pve-docker
roles:
- traefik
- hosts:
- grimes
roles:
- plausible
- duplicati
- pages
- upload
- nebula
- hosts: pve-docker
roles:
- pve_docker
- gitea
- duplicati
- yourls
- pve_nebula_route
- privatebin
- hosts: ingress
roles:
- role: chmduquesne.iptables_persistent
become: true
- ingress
- nebula
- hosts: pve
roles:
- role: proxmox-nag-removal
become: true
- pve
- zfs
- pve_nebula_route
- telegraf
- hosts: forrest
roles:
- forrest
- pve_nebula_route
- hosts: deluge
roles:
- deluge