$ sudo systemctl enable ssh
$ sudo systemctl start ssh
Prepare Inventory file ans variables file.
See inventory/hosts.sample and group_vars/all.sample for an example file.
$ ansible-playbook -i inventory/hosts bootstrap.yml -k
This script changes ip address and hostname.
You need to modify inventory file to connect machines again.