Introduction to Ansible Transcripts
Chapter: Deployments
Lecture: Testing the Nginx Tasks

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's kick off our playbook see how it works see what we need to fix up. Okay, so the error here is that certbot
0:12 which is what we used work with Let's Encrypt needs to run in non-interactive mode. Let's add this to our command.
0:27 All right, we got past the first error. Open up our file. Now, we could use the Nginx plug-in but I'd rather just get past this error
0:38 so we can just stop Nginx temporarily.
1:03 Then we'll restart service when we obtain the certificate
1:32 Generating the pem file may take a little while so be patient on this step. Okay, it looks like we got past the previous error message
1:40 but now we're having a problem having Nginx restarted so open up the templates file and both of those lines need to have semicolons at the end.
1:56 One more time. And one more thing that we need to change.
2:13 Nginx is actually not started yet. Nginx will not restart due to that conditional we put in place because we already have the Nginx files
2:23 and directory created. We should make sure that we remove the "when" conditional here because if Nginx is not running
2:32 this will make sure that it's started. If it's already running, nothing will happen here. Alright, so we were able to execute everything.
2:44 Now, our server is not yet up and running because it's waiting on an upstream host which is our werkzeug server that we're going to be running
2:50 but now we can grab our application and we should be able to use the HTTPS connection as reverse proxy for our werkzeug server
2:57 so let's keep going, grab our source code and get our werkzeug server up and running.


Talk Python's Mastodon Michael Kennedy's Mastodon