Introduction to Ansible Transcripts
Chapter: Configuring Servers
Lecture: New Playbook Scaffolding

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Time to dive back into the command line.
0:01 We're no longer going to build upon our first playbook
0:04 we're going to create a new project so start out
0:06 by creating a new project directory.
0:09 I'll just call this server_config for this chapter
0:12 and of course this directory's going to be empty.
0:14 As you use Ansible for more projects
0:16 you'll likely have a base playbook that you'll work from
0:19 something that has your initial scaffolding.
0:20 Maybe some common roles that you reuse across
0:23 many different projects.
0:24 A bunch of variables that you typically have for each role.
0:26 But rather than start you with some scaffolding
0:28 I prefer to start from a blank directory for this chapter.
0:31 Just as we did with our first playbook.
0:33 So now with our empty directory
0:34 let's create the subdirectories
0:36 that we know we're going to need.
0:38 group_vars and roles.
0:41 We're going to need an SSH key.
0:45 No passphrase. And within the roles directory
0:48 we're going to need three subdirectories.
0:51 We'll have a common role, we'll have a database
0:53 and we'll have a web server.
0:55 And we'll fill in those three roles as we go along.
0:58 We have our initial public private keys
1:00 a few directories that we're going to fill in
1:01 and we'd like to write our inventory file
1:03 but we don't have servers yet so let's spin up two new
1:05 servers on DigitalOcean now.