From 87ff607e92a39fc3d4b353d53ee07bcada55db9c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 14 Sep 2020 10:46:43 +0200 Subject: [PATCH] Install docker tools --- roles/dockerd-wsl/tasks/main.yaml | 18 ++++++++++++++++++ wsl-debian.yaml | 1 + 2 files changed, 19 insertions(+) create mode 100644 roles/dockerd-wsl/tasks/main.yaml diff --git a/roles/dockerd-wsl/tasks/main.yaml b/roles/dockerd-wsl/tasks/main.yaml new file mode 100644 index 0000000..07e1018 --- /dev/null +++ b/roles/dockerd-wsl/tasks/main.yaml @@ -0,0 +1,18 @@ +--- +# # Only for wsl-1 +# - name: set docker-host variable +# become_user: "{{ account.name }}" +# lineinfile: +# path: "/home/{{ account.name }}/.zshrc" +# regexp: "^export DOCKER_HOST=" +# line: "export DOCKER_HOST=tcp://localhost:2375" + +- name: install docker tools + package: + name: + - docker.io + - docker-compose + state: latest + + + diff --git a/wsl-debian.yaml b/wsl-debian.yaml index 0b648b1..b11c85d 100644 --- a/wsl-debian.yaml +++ b/wsl-debian.yaml @@ -17,3 +17,4 @@ - tools - dev-machine - pinentry-wsl + - dockerd-wsl