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