From c182c4dc6694ee6e7f49cfa91f5d02ea306c072d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 4 Aug 2023 11:20:03 +0200 Subject: import some common roles --- roles/docker/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/docker/tasks/main.yml (limited to 'roles/docker/tasks') diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml new file mode 100644 index 0000000..574a17c --- /dev/null +++ b/roles/docker/tasks/main.yml @@ -0,0 +1,13 @@ +- name: Install Docker + become: true + ansible.builtin.apt: + install_recommends: false + name: + - docker.io + - docker-compose + state: present + +- name: Clean up Docker data + become: true + ansible.builtin.command: docker system prune -a -f --volumes + changed_when: true -- cgit v1.2.3