Set the root password using the ansible user module.
Password hashes for most linux distributions can be generated as documented here
linux_rootpassword__password: 'plz_change_me'
- hosts: classroom
vars:
- linux_rootpassword__password: "hashvaluehere"
roles:
- linux_rootpassword
GPLv3
Part of the ANTS Framework