--- - hosts: all tasks: - name: check if docker is started service: name=docker state=started become: yes #force le passage en sudo