aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 11:20:03 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 11:20:03 +0200
commitc182c4dc6694ee6e7f49cfa91f5d02ea306c072d (patch)
tree82a8889418a1d64312db4e76080dd14014ff70f0 /roles/docker/tasks
parentinitial commit (diff)
downloadinfra-ansible-c182c4dc6694ee6e7f49cfa91f5d02ea306c072d.tar.gz
infra-ansible-c182c4dc6694ee6e7f49cfa91f5d02ea306c072d.zip
import some common roles
Diffstat (limited to '')
-rw-r--r--roles/docker/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
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