Example using loop: to pass the RHCE with Ansible

Published: 03 May 2021
on channel: LondonIAC / Dennis McCarthy / Automation Engineer
2,196
38

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


Watch video Example using loop: to pass the RHCE with Ansible online without registration, duration hours minute second in high quality. This video was added by user LondonIAC / Dennis McCarthy / Automation Engineer 03 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,196 once and liked it 38 people.