--- # install docker using geerlingguy docker role - this whole task file is under tag install-docker - name: 'Use geerlingguy.docker role' include_role: name: geerlingguy.docker - name: 'Use geerlingguy.pip role to install docker via pip' vars: pip_install_packages: - name: docker - name: docker-compose include_role: name: geerlingguy.pip - name: Add uptime_kuma_user to docker group user: name: "{{ uptime_kuma_user }}" groups: docker append: yes - name: reset ssh connection to allow user changes to affect 'current login user' meta: reset_connection