Conditionally install cockpit-docker

master
blallo 2020-05-28 10:12:22 +02:00
parent 7918d779c2
commit dd2963d7e8
1 changed files with 11 additions and 0 deletions

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"