summaryrefslogtreecommitdiff
path: root/roles/common/tasks/docker/alpine.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks/docker/alpine.yml')
-rw-r--r--roles/common/tasks/docker/alpine.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/roles/common/tasks/docker/alpine.yml b/roles/common/tasks/docker/alpine.yml
new file mode 100644
index 0000000..ce759a4
--- /dev/null
+++ b/roles/common/tasks/docker/alpine.yml
@@ -0,0 +1,31 @@
+---
+- name: Installing Docker
+ apk:
+ state: present
+ update_cache: yes
+ name:
+ - docker
+ - docker-py
+
+- name: Ensuring Docker has been started
+ service:
+ name: docker
+ state: started
+ enabled: yes
+
+- name: Copying cgroups mount script to local.d
+ copy:
+ src: ../../../common/files/1-cgroup-docker.start
+ dest: /etc/local.d/1-cgroup-docker.start
+ mode: '0700'
+
+- name: Ensuring local service has been started
+ service:
+ name: local
+ state: started
+ enabled: yes
+
+- name: Running hello-world test
+ docker_container:
+ name: hello-world
+ image: hello-world