Supppression des states Proxmox (plus adapté à Proxmox 7
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
- hosts: hypervisors
|
|
||||||
roles:
|
|
||||||
- prerequisites
|
|
@@ -1,3 +0,0 @@
|
|||||||
- hosts: hypervisors
|
|
||||||
roles:
|
|
||||||
- proxmox6_installation
|
|
@@ -1,3 +0,0 @@
|
|||||||
- hosts: hypervisors
|
|
||||||
roles:
|
|
||||||
- proxmox6_prerequisite
|
|
@@ -1,16 +0,0 @@
|
|||||||
- name: "Check if the distribution is Debian"
|
|
||||||
assert:
|
|
||||||
msg: "Proxmox VE 6 can only be installed properly on Debian Buster. You distribution: {{ ansible_os_family }}"
|
|
||||||
that:
|
|
||||||
- ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
- name: "Check if the version is Buster"
|
|
||||||
assert:
|
|
||||||
msg: "Proxmox VE 6 can only be installed properly on Debian Buster. Your version: {{ ansible_distribution_release }}"
|
|
||||||
that:
|
|
||||||
- ansible_distribution_release == 'buster'
|
|
||||||
|
|
||||||
- name: "Install Aptitude"
|
|
||||||
apt:
|
|
||||||
name: aptitude
|
|
||||||
state: present
|
|
@@ -1,2 +0,0 @@
|
|||||||
overlay
|
|
||||||
aufs
|
|
@@ -1,35 +0,0 @@
|
|||||||
- name: "Add Proxmox VE 6 recommended packages"
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
loop:
|
|
||||||
- proxmox-ve
|
|
||||||
- postfix
|
|
||||||
- open-iscsi
|
|
||||||
- zfsutils-linux
|
|
||||||
- ifupdown2
|
|
||||||
|
|
||||||
- name: "Remove Proxmox VE 6 recommended packages"
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
loop:
|
|
||||||
- os-prober
|
|
||||||
|
|
||||||
- name: add missing modules for docker
|
|
||||||
modprobe:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
loop:
|
|
||||||
- overlay
|
|
||||||
- aufs
|
|
||||||
|
|
||||||
- name: add missing modules to boot
|
|
||||||
copy:
|
|
||||||
src: ./files/nested_docker.conf
|
|
||||||
dest: /etc/modules-load.d/nested_docker.conf
|
|
||||||
|
|
||||||
- name: "Reboot after first Install"
|
|
||||||
shell: "/sbin/shutdown -r -t 1 > /root/first_install_ok"
|
|
||||||
args:
|
|
||||||
creates: /root/first_install_ok
|
|
@@ -1,15 +0,0 @@
|
|||||||
- name: "Add hosts Proxmox style"
|
|
||||||
template:
|
|
||||||
src: hosts.j2
|
|
||||||
dest: /etc/hosts
|
|
||||||
- name: "Add Proxmox VE 6 GPG key"
|
|
||||||
get_url:
|
|
||||||
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg
|
|
||||||
dest: /etc/apt/trusted.gpg.d/
|
|
||||||
- name: "Add Proxmox VE 6 Repo"
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb http://download.proxmox.com/debian/pve buster pve-no-subscription"
|
|
||||||
state: present
|
|
||||||
- name: "Apt upgrade"
|
|
||||||
apt:
|
|
||||||
upgrade: dist
|
|
@@ -1,11 +0,0 @@
|
|||||||
# Default hosts
|
|
||||||
127.0.0.1 localhost.localdomain localhost
|
|
||||||
::1 localhost ip6-localhost ip6-loopback
|
|
||||||
ff02::1 ip6-allnodes
|
|
||||||
ff02::2 ip6-allrouters
|
|
||||||
|
|
||||||
# Proxmox specific
|
|
||||||
{% for host in groups['hypervisors'] %}
|
|
||||||
{{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
|
|
||||||
{{ hostvars[host]['ansible_default_ipv6']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
|
|
||||||
{% endfor %}
|
|
@@ -1,3 +0,0 @@
|
|||||||
- import_playbook: hypervisors/prerequisites.yml
|
|
||||||
- import_playbook: hypervisors/proxmox6_prerequisite.yml
|
|
||||||
- import_playbook: hypervisors/proxmox6_installation.yml
|
|
Reference in New Issue
Block a user