summaryrefslogtreecommitdiffstats
path: root/roles/cockpit/tasks/main.yml
blob: 8410e7c90118e10ff6fced1dbba7f296f029c181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
- name: Install cockpit-ws
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - cockpit-ws
    - cockpit-shell
    - cockpit-bridge
    - "{{ cockpit_plugins }}"
  when: ansible_pkg_mgr == "yum"

- name: Install cockpit-ws
  dnf:
    name: "{{ item }}"
    state: present
  with_items:
    - cockpit-ws
    - cockpit-shell
    - cockpit-bridge
    - "{{ cockpit_plugins }}"
  when: ansible_pkg_mgr == "dnf"

- name: Enable cockpit-ws
  service:
    name: cockpit.socket
    enabled: true
    state: started