1
0
forked from infra/ansible
infra/roles/common/tasks/main.yml

22 lines
472 B
YAML
Raw Normal View History

2015-12-13 18:54:49 +01:00
---
2019-03-09 18:38:07 +01:00
- name: Cleanup
apt: autoclean=yes
when: ansible_os_family == 'Debian'
2018-10-15 21:08:06 +02:00
- name: Gather package facts
package_facts:
manager: apt
when: ansible_os_family == 'Debian'
- name: Proxmox
include: Proxmox.yml
when: ansible_os_family == 'Debian' and 'pve-manager' in ansible_facts.packages
2015-12-13 18:54:49 +01:00
2016-01-13 14:19:50 +01:00
- name: Debian
include: Debian.yml
2018-10-15 21:08:06 +02:00
when: ansible_os_family == 'Debian' and 'pve-manager' not in ansible_facts.packages
- name: Setup chrony
include: chrony.yml