main.yml 462 B

123456789101112131415
  1. ---
  2. # tasks file for docker
  3. - name: Install docker
  4. yum: pkg=docker-io
  5. - name: enable and start the docker service
  6. service: name=docker enabled=yes state=started
  7. - copy: src=enter-container.sh dest=/usr/local/bin/enter-container.sh mode=0755
  8. # From the origin rpm there exists instructions on how to
  9. # setup origin properly. The following steps come from there
  10. - name: Change root to be in the Docker group
  11. user: name=root groups=dockerroot append=yes