This commit is contained in:
2022-01-15 15:24:33 +01:00
parent 4e57b41453
commit 08ae4e6bff
7 changed files with 346 additions and 97 deletions

View File

@ -177,10 +177,31 @@
apt:
name: "{{ apt_lxc_host_pkgs }}"
state: "{{ apt_install_state }}"
when: apt_install_lxc_host_pkgs|bool
when:
- groups['lxc_host']|string is search(inventory_hostname)
tags:
- apt-lxc-hosts-pkgs
- name: (apt.yml) Install kvm_host related packages
apt:
name: "{{ apt_kvm_host_pkgs }}"
state: "{{ apt_install_state }}"
when:
- groups['kvm_host']|string is search(inventory_hostname)
tags:
- apt-kvm-hosts-pkgs
- name: (apt.yml) Install kvm_host related packages only debian 10 (buster)
apt:
name: "{{ apt_kvm_host_buster_pkgs }}"
state: "{{ apt_install_state }}"
when:
- groups['kvm_host']|string is search(inventory_hostname)
- ansible_facts['distribution'] == "Debian"
- ansible_facts['distribution_major_version'] == "10"
tags:
- apt-kvm-hosts-pkgs
- name: (apt.yml) Install compiler related packages
apt:
name: "{{ apt_compiler_pkgs }}"