ansible/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
2021-11-03 18:29:04 +01:00
when: ansible_os_family == "Debian"
2018-10-15 21:08:06 +02:00
- name: Gather package facts
package_facts:
manager: apt
2021-11-03 18:29:04 +01:00
when: ansible_os_family == "Debian"
2018-10-15 21:08:06 +02:00
- name: Proxmox
include: Proxmox.yml
2021-11-03 18:29:04 +01:00
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
2021-11-03 18:29:04 +01:00
when: ansible_os_family == "Debian" and "pve-manager" not in ansible_facts.packages
- name: Setup chrony
include: chrony.yml