diff options
author | heqnx <root@heqnx.com> | 2025-06-24 11:56:05 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-06-24 11:56:05 +0300 |
commit | 21f31894a309b074fb919ad38605c4e280ef6212 (patch) | |
tree | 9a78608e1c63125852c45d36c6151db984b91b82 /tasks/pve_configure.yaml | |
parent | d2e86f3083e22965fd46335b58151734bad8fc1a (diff) | |
download | ansible-pve-host-21f31894a309b074fb919ad38605c4e280ef6212.tar.gz ansible-pve-host-21f31894a309b074fb919ad38605c4e280ef6212.zip |
additional steps to persist /etc/network/interfaces, installing ifupdown2 as recommended by pve documentation
Diffstat (limited to 'tasks/pve_configure.yaml')
-rw-r--r-- | tasks/pve_configure.yaml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tasks/pve_configure.yaml b/tasks/pve_configure.yaml index 757c7b4..bae645e 100644 --- a/tasks/pve_configure.yaml +++ b/tasks/pve_configure.yaml @@ -19,6 +19,19 @@ group: root mode: '0644' +- name: deploy /etc/network/interfaces.new + template: + src: interfaces.j2 + dest: /etc/network/interfaces.new + owner: root + group: root + mode: '0644' + +- name: run ifreload to commit changes + shell: ifreload -a + register: ifreload_shell + failed_when: ifreload_shell.rc != 0 + - name: set pveproxy config copy: src: files/pveproxy @@ -90,7 +103,7 @@ - name: save password to file copy: - content: "{{ pve_admin_password }}" + content: "pveadmin:{{ pve_admin_password }}\n" dest: "{{ pve_admin_password_file }}" owner: root group: root |