Conditionally install cockpit-docker
This commit is contained in:
parent
7918d779c2
commit
dd2963d7e8
|
@ -7,6 +7,17 @@
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ cockpit_packages }}"
|
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
|
- name: disable cockpit selfsigned TLS
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "/etc/cockpit/cockpit.conf"
|
dest: "/etc/cockpit/cockpit.conf"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user