From: Oleg Broytman Date: Mon, 11 Apr 2022 14:33:27 +0000 (+0300) Subject: Feat(roles/docker): Install Docker (currently Debian-only) X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ca4187eba5d3a00a567a257ad9fb1d9869de4a27;p=ansible.git Feat(roles/docker): Install Docker (currently Debian-only) --- diff --git a/playbooks/roles/docker/README.txt b/playbooks/roles/docker/README.txt new file mode 100644 index 0000000..af417db --- /dev/null +++ b/playbooks/roles/docker/README.txt @@ -0,0 +1 @@ +Install Docker (currently Debian-only from Debian repository). diff --git a/playbooks/roles/docker/tasks/main.yml b/playbooks/roles/docker/tasks/main.yml new file mode 100644 index 0000000..d053f2b --- /dev/null +++ b/playbooks/roles/docker/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install Docker (Debian) + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: docker.io + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian'