From 03cc3fb77a5eb487aea8d19a1e4acdcefcaf7811 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 29 Oct 2023 22:17:55 +0000 Subject: [PATCH] Revert hack to workaround Proxmox bug --- .../roles/proxmox_create_lxc/tasks/main.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/personal_infra/playbooks/roles/proxmox_create_lxc/tasks/main.yml b/personal_infra/playbooks/roles/proxmox_create_lxc/tasks/main.yml index 4a5d37b..62365eb 100644 --- a/personal_infra/playbooks/roles/proxmox_create_lxc/tasks/main.yml +++ b/personal_infra/playbooks/roles/proxmox_create_lxc/tasks/main.yml @@ -51,23 +51,6 @@ - name: set proxmox extra copy in command: cp /tmp/{{ proxmox.id }}.conf /etc/pve/lxc/{{ proxmox.id }}.conf delegate_to: "{{ proxmox.host }}" -# https://bugzilla.proxmox.com/show_bug.cgi?id=4515 -- name: set hosts - copy: - content: | - 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 - ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 - - {% if network is defined and network.ip is defined %} - {{ network.ip }} {{ inventory_hostname }} {{ inventory_hostname|regex_search('^[^.]*') }} - {% endif %} - dest: /rpool/data/subvol-{{ proxmox.id }}-disk-0/etc/hosts - delegate_to: "{{ proxmox.host }}" -- name: prevent proxmox from manipulating hosts - file: - path: /etc/.pve-ignore.hosts - state: touch - delegate_to: "{{ proxmox.host }}" - name: start host shell: "{ pct status {{ proxmox.id }} | grep running ; } || pct start {{ proxmox.id }}" delegate_to: "{{ proxmox.host }}" -- 2.47.3