Introduction to Ansible Transcripts
Chapter: Configuring Servers
Lecture: Configuring Servers

Login or purchase this course to watch this video and the rest of the course contents.
0:00 We know how to write a basic playbook
0:01 include variables, read from environment variables
0:04 encrypt sensitive information, and use templates
0:07 in order to configure our services.
0:08 But how do we take that initial knowledge
0:10 and scale it up for a more typical
0:12 but complicated situation.
0:13 For example, let's say we wanted to configure a web
0:16 and database server, two separate servers.
0:18 Say we've got two of them on DigitalOcean.
0:20 We need to create non-root groups, users for both of them
0:24 you need to harden the server against malicious attacks.
0:27 It'd have to stand up and configure a webserver
0:29 add certificates for https, make sure that
0:33 that webserver stays up, so that if for some reason
0:35 the webserver process goes down
0:37 that it restarts itself automatically.
0:39 We need to install and configure a database
0:41 on one of the servers and check the database connection
0:43 make sure the database is configured properly
0:46 and there's a whole lot of other substeps
0:47 that we need to take to make sure
0:48 that we'd setup these two servers properly.
0:51 In this chapter we're going to take that initial knowledge
0:53 that we gained from building our first playbook
0:55 and scale it up to do all these things.
0:57 We'll have a common role that will allow us
0:59 to take some default servers and set them up properly
1:03 and then one of the servers will handle the webserver
1:05 and the other role will configure a database.
1:07 There'll be a significant amount of live coding
1:10 in this chapter, so you'll want to bring up
1:12 the finished Chapter 6 code which you can find
1:14 at bit.ly/intro-ansible-ch6.
1:20 When you bring up this link, it will contain all the files
1:22 that we're going to create in this chapter.
1:24 There's going to be a lot of hands-on coding
1:26 throughout the entire chapter
1:27 but I promise you're going to be very comfortable
1:29 with a good-sized playbook once we're finished.