--- - name: update apt cache apt: update_cache: yes - name: restart docker service: name: docker state: restarted