Example using loop: to pass the RHCE with Ansible

Опубликовано: 03 Май 2021
на канале: 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


Смотрите видео Example using loop: to pass the RHCE with Ansible онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь LondonIAC / Dennis McCarthy / Automation Engineer 03 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,196 раз и оно понравилось 38 людям.