ansible/roles/common/tasks/main.yml

19 lines
502 B
YAML
Raw Normal View History

2015-12-13 18:54:49 +01:00
---
# This playbook contains common plays that will be run on all nodes.
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
2015-12-13 18:54:49 +01:00
2016-01-13 14:19:50 +01:00
- name: FreeBSD
include: FreeBSD.yml
2015-12-13 18:54:49 +01:00
when: ansible_distribution == 'FreeBSD'