dotfiles/roles/system/cockpit/tasks/main.yml
Matej Focko 918f7c8fbf
feat(system/cockpit): implement Cockpit role
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-07-12 15:01:52 +02:00

19 lines
431 B
YAML

---
- name: Packages
ansible.builtin.include_tasks: install.yml
tags: install
- name: Install config to enable reverse proxy
ansible.builtin.template:
src: templates/cockpit.conf
dest: /etc/cockpit/cockpit.conf
mode: 0644
owner: root
group: root
when: system_cockpit_has_reverse_proxy
- name: Enable cockpit
ansible.builtin.service:
name: "cockpit.socket"
enabled: true
state: restarted