35 lines
869 B
YAML
35 lines
869 B
YAML
- name: Enable IOMMU
|
|
lineinfile:
|
|
path: /etc/default/grub
|
|
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT='
|
|
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"'
|
|
notify: update grub
|
|
|
|
- name: Copy pve-no-subscription.list
|
|
copy:
|
|
src: pve-no-subscription.list
|
|
dest: /etc/apt/sources.list.d/pve-no-subscription.list
|
|
|
|
- name: Stat pve-enterprise.list
|
|
stat:
|
|
path: /etc/apt/sources.list.d/pve-enterprise.list
|
|
register: pve_enterprise_stat
|
|
|
|
- name: Backup pve-enterprise.list
|
|
copy:
|
|
remote_src: True
|
|
src: /etc/apt/sources.list.d/pve-enterprise.list
|
|
dest: /etc/apt/sources.list.d/pve-enterprise.list.bak
|
|
when: pve_enterprise_stat.stat.exists
|
|
|
|
- name: Disable pve-enterprise.list
|
|
file:
|
|
path: /etc/apt/sources.list.d/pve-enterprise.list
|
|
state: absent
|
|
|
|
- name: Perform dist-upgrade
|
|
apt:
|
|
update_cache: yes
|
|
upgrade: dist
|
|
|