Based on this tutorial with some small adaptations for RHEL 8.
- Install Ansible on your control node;
- Add the private IP of the managed nodes to the /etc/hosts file and name them as "vm2", "vm3" and so on. E.g.
192.168.1.100 vm2
; - Make sure the ssh is working fine between the control node and the managed nodes;
- Use the "hosts" file from this repository as your ansible inventory;
- Run the playbook myplaybook.yml 😎👍