Add matrix_docker_installation_enabled

This commit is contained in:
Dan Arnfield
2019-11-18 11:20:01 -06:00
parent 3cec6947ed
commit 80cfb2a93e
4 changed files with 16 additions and 0 deletions

View File

@ -15,12 +15,14 @@
state: present
register: add_repository_key
ignore_errors: true
when: run_docker_installation|bool
- name: Ensure Docker repository is enabled
apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
state: present
update_cache: yes
when: run_docker_installation|bool
- name: Ensure APT packages are installed
apt:
@ -38,3 +40,4 @@
- docker-ce
state: latest
update_cache: yes
when: run_docker_installation|bool