SUBSCRIBE for more videos like this.
To pass the Red Hat RHCE on RHEL8, you need to use Ansible to configure the servers.
Join me in this real-time demo as I take you through how to use loops from a basic level, up to an intermediate level. It's also good preparation if you're planning to take the RHCE soon.
Here's what's covered:
• We write a playbook to create a list of users using a loop.
• Then extend the loop by adding in UID for each user.
• Move the username and UIDs into a variables file and call that from the playbook.
• Add user passwords [ansible-vault] using a filter.
Ansible: user module:
https://docs.ansible.com/ansible/2.9/...
Ansible: how to use loops:
https://docs.ansible.com/ansible/late...
Ansible: Data manipulation (password_hash):
https://docs.ansible.com/ansible/late...
#rhce #ansible #loop