infrastructure/ansible/main.yml
Jake Howard c6d9102e1e
Don't install NTP on LXC containers
This can cause issues with containers trying to sync the system clock, and getting it wrong
2021-03-04 15:45:47 +00:00

86 lines
1.4 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
- hosts: forrest
roles:
- forrest
- hosts: deluge
roles:
- deluge