main.yml 272 B

12345678910111213
  1. ---
  2. # tasks file for docker
  3. - name: Install docker
  4. yum: pkg=docker
  5. when: ansible_pkg_mgr == "yum"
  6. - name: Install docker
  7. dnf: pkg=docker
  8. when: ansible_pkg_mgr == "dnf"
  9. - name: enable and start the docker service
  10. service: name=docker enabled=yes state=started