summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks/main.yml
blob: 2223bb675026d3309354781d2aabf5e7e2bff72e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
# tasks file for docker
- name: Install docker
  yum: pkg=docker

- name: enable docker service
  command: /usr/bin/systemctl enable docker.service

- name: start the docker service
  command: /usr/bin/systemctl start docker.service

- copy: src=enter-container.sh dest=/usr/local/bin/enter-container.sh mode=0755

# From the origin rpm there exists instructions on how to
# setup origin properly.  The following steps come from there
- name: Change root to be in the Docker group
  command: usermod -G docker -a root