Introduction to Ansible Transcripts
Chapter: Configuring Servers
Lecture: Testing Our Playbook

Login or purchase this course to watch this video and the rest of the course contents.
0:00 This time when we execute our playbook we don't want to use init_config. We're going to create a new playbook. Copy what's in init_config
0:08 create a new playbook webserver.yml. The user this time is going to be deployer, not root. And we're going to apply the common role.
0:24 And we'll add web server role to that once we create it. We should now have everything in place to test out this new configuration.
0:44 Okay, so looks good. Now, that likely took a while for you. What was happening on the remote server was that we were installing a bunch
0:50 of packages and downloading and installing that can take quite a while. Don't worry if it seems like playbook hangs
0:55 for a few minutes, as long as it doesn't error out, it should be okay. And eventually it'll finish up. So now it looks like our playbook is good
1:01 and we can start building upon it using the deployer user and expand out and use the common role to protect against malicious actors and install
1:09 the basic packages we're going to need across our systems.


Talk Python's Mastodon Michael Kennedy's Mastodon