summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-01-29 17:46:25 -0500
committerThedro Neely <thedroneely@gmail.com>2020-01-29 17:46:25 -0500
commit52de8730f14f35a439ec26257f79d45ed6e8cce4 (patch)
tree165164bd25540604fd3683a4a88c8939366e8b0b
parent4fecc79ecb47fc57bd49eddb3d225a7cab061a69 (diff)
downloadplaybooks-52de8730f14f35a439ec26257f79d45ed6e8cce4.tar.gz
playbooks-52de8730f14f35a439ec26257f79d45ed6e8cce4.tar.bz2
playbooks-52de8730f14f35a439ec26257f79d45ed6e8cce4.zip
roles/lxc-docker-alpine: Syntax
-rw-r--r--roles/lxc-docker-alpine/main.yml16
1 files changed, 11 insertions, 5 deletions
diff --git a/roles/lxc-docker-alpine/main.yml b/roles/lxc-docker-alpine/main.yml
index 0032397..f0b646d 100644
--- a/roles/lxc-docker-alpine/main.yml
+++ b/roles/lxc-docker-alpine/main.yml
@@ -1,9 +1,11 @@
---
# Target: alpine3.10
-# Host: debian arch
-- name: Install Docker on Alpine LXC Container (Debian Host)
- hosts: lxc_docker_alpine
+# Host: debian, arch
+- name: Install Docker on Alpine LXC Container
+ hosts: docker_alpine_lxc
+
tasks:
+
- name: Installing Docker
apk:
state: present
@@ -11,24 +13,28 @@
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: 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
shell: docker run hello-world && touch /tmp/.docker-success
register: output
- args:
+ args:
creates: /tmp/.docker-success
- - debug: var=output \ No newline at end of file
+ - debug: var=output