diff --git a/tasks/main.yml b/tasks/main.yml index 1e0cb9b..5474f7e 100644 --- a/tasks/main.yml +++ b/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"