ansible-cockpit/tasks/main.yml
2019-02-06 13:47:17 +01:00

21 lines
572 B
YAML

---
# tasks file for bvansomeren.cockpit
- name: ensure cockpit is installed
package:
name: "{{ item }}"
state: present
loop: "{{ cockpit_packages }}"
- name: disable cockpit internal TLS
ini_file: dest=/usr/lib/systemd/system/cockpit.service section=Service option=ExecStart value="/usr/libexec/cockpit-ws --no-tls"
register: systemd
when: cockpit_disable_tls
- name: reload systemd if unit file changed
command: systemctl daemon-reload
when: systemd.changed
- name: ensure Cockpit is started
service: name=cockpit state=started enabled=yes