# Copy to hosts.yml and fill with your server details all: children: homeserver: hosts: 192.168.x.x: ansible_user: your_username ansible_become: true ansible_ssh_private_key_file: ~/.ssh/your_key