Conditionally install cockpit-docker

master
blallo 3 years ago
parent 7918d779c2
commit dd2963d7e8
  1. 11
      tasks/main.yml

@ -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"

Loading…
Cancel
Save