chef-recipes/roles/cockpit/tasks/main.yml
2023-02-06 10:11:03 +01:00

34 lines
660 B
YAML

- name: Install base packages
become: true
ansible.builtin.package:
name:
- cockpit
- cockpit-bridge
- cockpit-machines
- cockpit-packagekit
- cockpit-podman
- cockpit-storaged
- cockpit-system
- cockpit-ws
state: present
- name: Enable cockpit
become: true
ansible.builtin.systemd:
name: cockpit.socket
enabled: true
state: started
- name: Copy cockpit configuration
become: true
ansible.builtin.template:
src: cockpit.conf.j2
dest: /etc/cockpit/cockpit.conf
owner: root
group: root
mode: 0644
# - name: Reboot
# become: true
# ansible.builtin.reboot: