RHCE 8 - Ansible Playbook Provisioning The Devops User

preview_player
Показать описание
This is where the fun starts. So far we only have the root account on our hosts. We need to add another account for Ansible to use. We are using root currently but we can be more secure that that. The situation is more complex though, we need to make sure the use is in the correct admin group, wheel on RHEL and sudo on Ubuntu. We will use variables there, we will also see how to add the user, the ssh keys for authentication and the sudoers files to the remote system by creating a Playbook with one play and 3 tasks. We also add to our vim customisation to highlight the line and column as well as adding line numbering.
Рекомендации по теме
Комментарии
Автор

I've rewatched videos a few times. You do a great job explaining things. I"m in the middle of tranining for RHCE and will take the exam when I can, given the current landscape.

notjustanyjoe
Автор

I would like to congratulate this linux master, thank you for creating this tutorial.

kayoutube
Автор

Cool stuff Andrew great content, keep up the good work, and keep smiling ...:-)

lanceeilers
Автор

Hi Team,
I am getting below error while running the playbook, note I have a group already "admin_group"
fatal: [target1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'admin_group' is undefined\n\nThe error appears to be in line 5, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Create User\n ^ here\n"}

palanisamy-dlqe
Автор

How would I go about adding keys for multiple users by looping each user with their own key? if that makes sense

edwinbutler
visit shbcf.ru