ansible-ffrgb/roles/common/tasks/main.yml

23 lines
510 B
YAML
Raw Normal View History

2017-03-26 20:02:33 +02:00
---
- name: Cleanup
apt: autoclean=yes
when: ansible_os_family == 'Debian'
2017-03-26 20:02:33 +02:00
- name: Gather package facts
package_facts:
manager: apt
when: ansible_os_family == 'Debian'
2018-07-17 13:15:51 +02:00
- name: Proxmox
include: Proxmox.yml
when: ansible_os_family == 'Debian' and 'pve-manager' in ansible_facts.packages
2017-03-26 20:02:33 +02:00
- name: Debian
include: Debian.yml
when: ansible_os_family == 'Debian' and 'pve-manager' not in ansible_facts.packages
2018-07-17 13:15:51 +02:00
- name: FreeBSD
include: FreeBSD.yml
when: ansible_distribution == 'FreeBSD'