Introduction to Ansible Transcripts
Chapter: Running Playbooks
Lecture: Reviewing Our First Playbook

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In the beginning of this chapter we set out to create our first playbook and we defined this structure with an inventory
0:06 file top-level playbook, single roll named common, with a couple of YAML files that contained tasks in them.
0:11 And we enhanced our playbook with the new_user.yml file and we executed that against our server in order to ping servers to make sure that they
0:18 were up and listening to our requests and create new users that allowed us to log into our server not through the root account.
0:24 The great part about going through this example is you're actually really well-equipped to use Ansible now. There's some things that we did here
0:30 in these playbooks that are not considered good practices, for example hard coding variables. And we haven't seen how to expand our tasks
0:36 into many different roles, but by and large this is actually how Ansible playbooks get developed. You start out small and then you expand
0:43 upon them over time and you test along the way. We'll take this kernel, and we're going to expand upon it in the next chapter and add
0:49 the good practices in that will allow you to scale up your Ansible playbooks across projects, teams, and organizations.

Talk Python's Mastodon Michael Kennedy's Mastodon