Conditionally install cockpit-docker

This commit is contained in:
sfigato 2020-05-28 10:12:22 +02:00
parent 7918d779c2
commit dd2963d7e8

View File

@ -7,6 +7,17 @@
state: present
loop: "{{ cockpit_packages }}"
- name: find if docker is installed
docker_host_info:
register: docker
ignore_errors: yes
- name: ensure cockpit-docker is installed
apt:
name: cockpit-docker
state: present
when: docker.host_info is defined
- name: disable cockpit selfsigned TLS
ini_file:
dest: "/etc/cockpit/cockpit.conf"