well,
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2026-11-04 22:03:20 +10:00
parent 58a353a845
commit ef6920435f

View File

@@ -79,12 +79,30 @@
pubkey: "{{ ssh_key }}"
nameserver: "{{ dns | default(default_dns) }}"
searchdomain: "{{ domain | default(default_domain) }}"
# Инвертируем флаг: если privileged=true, то unprivileged=false
unprivileged: "{{ not (privileged | default(false) | bool) }}"
# Для Docker обязательно включаем nesting (вложенность)
features:
- "nesting={{ 1 if (privileged | default(false) | bool) else 0 }}"
netif:
net0: "name=eth0,bridge=vmbr0,ip={{ ip_address }}/24,gw=192.168.0.1"
net0: "name=eth0,bridge=vmbr0,ip={{ ip_address }}/24,gw={{ gateway | default('192.168.0.1') }}"
environment:
PYTHONHTTPSVERIFY: "0" # <--- И здесь тоже
when: type | default('vm') == 'lxc'
# 3. Магия: Тюнинг конфига LXC для Docker (AppArmor и cgroups)
- name: Inject Docker-specific tweaks into LXC config
ansible.builtin.blockinfile:
path: "/etc/pve/lxc/{{ allocated_id }}.conf"
marker: "# {mark} ANSIBLE MANAGED DOCKER TWEAKS"
block: |
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: c 10:200 rwm
# Выполняется ТОЛЬКО если мы явно попросили привилегированный контейнер под Docker
when: privileged | default(false) | bool
# === Управление High Availability (HA) ===
- name: Configure High Availability (HA)
community.proxmox.proxmox_cluster_ha_resources: