ansible/roles/common/tasks/main.yml

22 lines
472 B
YAML
Raw Normal View History

2017-03-26 20:02:33 +02:00
---
2024-11-18 17:01:54 +01:00
- name: Cleanup
apt: autoclean=yes
when: ansible_os_family == "Debian"
2019-10-10 09:40:41 +02:00
2024-11-18 17:01:54 +01:00
- name: Gather package facts
package_facts:
manager: apt
when: ansible_os_family == "Debian"
2019-10-10 09:40:41 +02:00
2024-11-18 17:01:54 +01:00
- name: Proxmox
include: Proxmox.yml
when: ansible_os_family == "Debian" and "pve-manager" in ansible_facts.packages
2019-10-10 09:40:41 +02:00
2024-11-18 17:01:54 +01:00
- name: Debian
include: Debian.yml
when: ansible_os_family == "Debian" and "pve-manager" not in ansible_facts.packages
2019-10-10 09:40:41 +02:00
2024-11-18 17:01:54 +01:00
- name: Setup chrony
include: chrony.yml