Skip to content

Instantly share code, notes, and snippets.

@islander
Created March 5, 2020 01:28
Show Gist options
  • Save islander/e32e32ec2b27ef8d7429d542ab572a53 to your computer and use it in GitHub Desktop.
Save islander/e32e32ec2b27ef8d7429d542ab572a53 to your computer and use it in GitHub Desktop.
Convert Debian 10 to Proxmox Virtual Environment 6. Ansible playbook.
---
- name: Add proxmox gpg key
apt_key:
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg
state: present
- name: Add proxmox repository
lineinfile:
path: /etc/apt/sources.list
line: deb http://download.proxmox.com/debian/pve buster pve-no-subscription
- name: install Proxmox
apt:
pkg: [
proxmox-ve,
postfix,
open-iscsi,
openvswitch-switch
]
- name: Remove Proxmox Enterprise repository
lineinfile:
path: /etc/apt/sources.list
line: deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
state: absent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment