diff options
-rw-r--r-- | roles/lxc-docker-alpine/main.yml | 16 |
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 |