Add suggested fix for offline message in cockpit
This commit is contained in:
parent
c47fe10369
commit
111326755b
2
roles/cockpit/files/10-globally-managed-devices.conf
Normal file
2
roles/cockpit/files/10-globally-managed-devices.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[keyfile]
|
||||||
|
unmanaged-devices=none
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user