Add suggested fix for offline message in cockpit

This commit is contained in:
Francesco Antognazza 2023-04-17 14:43:31 +02:00
parent c47fe10369
commit 111326755b
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[keyfile]
unmanaged-devices=none

View File

@ -30,6 +30,20 @@
group: root group: root
mode: 0644 mode: 0644
# https://cockpit-project.org/faq.html#error-message-about-being-offline
- name: Allow NetworkManager to manage network interfaces
become_user: root
become: true
ansible.builtin.copy:
src: files/10-globally-managed-devices.conf
dest: /etc/NetworkManager/conf.d/
owner: root
group: root
mode: "0644"
- name: Set-up a dummy network interface faking internet connection
ansible.builtin.command: "nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1"
- name: Permit traffic from any IP to cockpit socket - name: Permit traffic from any IP to cockpit socket
become: true become: true
community.general.ufw: community.general.ufw: