--- - name: "Playing on localhost" hosts: localhost connection: local tasks: - name: "Add ts3 repository" shell: "add-apt-repository ppa:materieller/teamspeak3" register: "output" - debug: var=output.stdout_lines - name: "Apt update" shell: "apt update" - name: "Install ts3 client" shell: "apt install teamspeak3-client"