--- - hosts: my-remote-vps.domain.tld roles: - ssh_tunnel vars: location: "remote" - hosts: my-local-machine.domain.tld roles: - ssh_tunnel vars: location: "local"