Introduction to Ansible Transcripts
Chapter: Running Playbooks
Lecture: Reviewing Our First Playbook
0:00 In the beginning of this chapter
0:01 we set out to create our first playbook
0:02 and we defined this structure with an inventory
0:05 file top-level playbook, single roll
0:07 named common, with a couple of YAML files
0:09 that contained tasks in them.
0:10 And we enhanced our playbook with the new_user.yml
0:11 file and we executed that against our server
0:14 in order to ping servers to make sure that they
0:17 were up and listening to our requests
0:19 and create new users that allowed us to log into
0:21 our server not through the root account.
0:23 The great part about going through this
0:24 example is you're actually really well-equipped
0:26 to use Ansible now.
0:27 There's some things that we did here
0:29 in these playbooks that are not
0:30 considered good practices, for example
0:32 hard coding variables.
0:33 And we haven't seen how to expand our tasks
0:35 into many different roles, but by and large
0:38 this is actually how Ansible playbooks get developed.
0:41 You start out small and then you expand
0:42 upon them over time and you test along the way.
0:44 We'll take this kernel, and we're going to expand
0:46 upon it in the next chapter and add
0:48 the good practices in that will allow
0:49 you to scale up your Ansible playbooks
0:51 across projects, teams, and organizations.