reorganize pve

This commit is contained in:
2025-08-03 13:43:44 +03:00
parent a3b74af44d
commit 19debcf0b4
3 changed files with 23 additions and 24 deletions

View File

@@ -1,22 +1,7 @@
---
- name: PVE base configuration
hosts: proxmox
serial: 1 # one host at a time
tasks:
- name: UI primary IP (/etc/hosts)
tags: network
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: ' {{ inventory_hostname_short }}$'
line: '{{ primary_ipv6 | split("/") | first }} {{ inventory_hostname }} {{ inventory_hostname_short }}'
- name: /etc/network/interfaces
tags: network
ansible.builtin.template:
src: templates/network.interfaces.j2
dest: /etc/network/interfaces
notify: reload networking
- name: admin convenience packages
tags: dep
apt:
@@ -87,12 +72,6 @@
options vhost max_mem_regions=512
dest: /etc/modprobe.d/vhost.conf
handlers:
- name: reload networking
ansible.builtin.systemd_service:
name: networking.service
state: reloaded
- name: PVE admin tooling
hosts: proxmox
tasks:

View File

@@ -1,6 +1,26 @@
- name: PVE base network configuration
hosts: proxmox
serial: 1 # one host at a time
tasks:
- name: /etc/network/interfaces
tags: network
ansible.builtin.template:
src: templates/network.interfaces.j2
dest: /etc/network/interfaces
notify: reload networking
- name: UI primary IP (/etc/hosts)
tags: network
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: ' {{ inventory_hostname_short }}$'
line: '{{ primary_ipv6 | split("/") | first }} {{ inventory_hostname }} {{ inventory_hostname_short }}'
handlers:
- name: reload networking
ansible.builtin.systemd_service:
name: networking.service
state: reloaded
---
- name: configure ceph on proxmox
- name: PVE CEPH network configuration
hosts:
- pve90.proxmox.infra.k-space.ee
- pve91.proxmox.infra.k-space.ee