Files
ansible_uni_deploy/roles/proxmox/tasks/set_community_repo.yml

23 lines
607 B
YAML

---
- name: setting community repo
ansible.builtin.blockinfile:
state: present
insertafter: EOF
path: /etc/apt/sources.list
mode: '0664'
create: true
block: |
#Block for setting community repo
deb http://download.proxmox.com/debian/ {{ ansible_distribution_release }} pve-no-subscription
- name: disable comercial one
file: path=/etc/apt/sources.list.d/pve-enterprise.list state=absent
- name: disable comercial two
file: path=/etc/apt/sources.list.d/ceph.list state=absent
- name: Update and upgrade apt packages
apt:
upgrade: yes
update_cache: yes