From ca4187eba5d3a00a567a257ad9fb1d9869de4a27 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 11 Apr 2022 17:33:27 +0300 Subject: [PATCH] Feat(roles/docker): Install Docker (currently Debian-only) --- playbooks/roles/docker/README.txt | 1 + playbooks/roles/docker/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 playbooks/roles/docker/README.txt create mode 100644 playbooks/roles/docker/tasks/main.yml 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' -- 2.39.5