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

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
*.keys *.keys
secrets/ /secrets
.idea/ .idea/

View File

@@ -1,22 +1,7 @@
--- ---
- name: PVE base configuration - name: PVE base configuration
hosts: proxmox hosts: proxmox
serial: 1 # one host at a time
tasks: 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 - name: admin convenience packages
tags: dep tags: dep
apt: apt:
@@ -87,12 +72,6 @@
options vhost max_mem_regions=512 options vhost max_mem_regions=512
dest: /etc/modprobe.d/vhost.conf dest: /etc/modprobe.d/vhost.conf
handlers:
- name: reload networking
ansible.builtin.systemd_service:
name: networking.service
state: reloaded
- name: PVE admin tooling - name: PVE admin tooling
hosts: proxmox hosts: proxmox
tasks: 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: PVE CEPH network configuration
- name: configure ceph on proxmox
hosts: hosts:
- pve90.proxmox.infra.k-space.ee - pve90.proxmox.infra.k-space.ee
- pve91.proxmox.infra.k-space.ee - pve91.proxmox.infra.k-space.ee