Proxmox handling
This commit is contained in:
parent
5d3e81b0f2
commit
271305ad34
@ -1,9 +1,17 @@
|
|||||||
---
|
---
|
||||||
# This playbook contains common plays that will be run on all nodes.
|
# This playbook contains common plays that will be run on all nodes.
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: Debian
|
- name: Debian
|
||||||
include: Debian.yml
|
include: Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian' and 'pve-manager' not in ansible_facts.packages
|
||||||
|
|
||||||
- name: FreeBSD
|
- name: FreeBSD
|
||||||
include: FreeBSD.yml
|
include: FreeBSD.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user