--- - name: Ansible Playbook for configuring brand new Raspberry Pi hosts: pis vars: - wlan: wlan0 - hostid: "{{ansible_ssh_host_key_rsa_public | hash('sha1') | regex_replace('(...).*', '\\1')}}" - user: juju roles: - pi remote_user: pi become: yes