ansible/roles/proxmox/tasks/main.yml

20 lines
621 B
YAML
Raw Normal View History

2022-07-23 01:37:05 +02:00
---
- name: Remove entreprise proxmox repository
apt_repository:
repo: "deb https://enterprise.proxmox.com/debian/pve {{ ansible_facts['lsb']['codename'] }} pve-enterprise"
state: absent
- name: Add non subscription proxmox repository
apt_repository:
repo: "deb [arch=amd64] http://download.proxmox.com/debian/pve {{ ansible_facts['lsb']['codename'] }} pve-no-subscription"
filename: pve-no-subscription
state: present
- name: Remove No Subscription Message
replace:
path: /usr/share/perl5/PVE/API2/Subscription.pm
regexp: 'NotFound'
replace: 'Active'
notify: Restart pveproxy