Introduction to Ansible Transcripts
Chapter: Deployments
Lecture: Using the start-at-task Argument

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's see if those application dependency tasks worked.
0:18 Okay, it looks like we pointed at a directory rather than core items dot text file. Let's open up Okay, so we have app directory
0:33 and we need to look in our project. And this is what we're trying to install the requirements.txt file. And we put a dot, which is going to make pip3
0:44 look four, but we want... A requirement.txt file. So, we're going to want to try this again but you're probably thinking
0:58 boy what a pain in the butt to constantly have to rerun every single step over and over again. So, that's why I want to show you
1:07 that we can start at a certain task in our Ansible playbook. We just need to tell Ansible which task we want to start from.
1:15 If we take a look at our file here we know that everything before it was successful. Let's start from use pip3 to install
1:22 application dependencies and see if we can get that working based on our change. The way that we do this is we pass in the --start-at-task argument
1:33 and then we surround by quotes the name of the task which I just copied, we paste this in use pip3 to install application dependencies.
1:42 Now, we'll kick this off. Still going to gather the facts but it'll go right to that task. And then it'll keep running everything after that.
1:55 So, it looks like we were able to install our application dependencies 'cause we can see up here successfully installed and we can move ahead
2:03 set up our WSGI server, and then put these pieces together to see how it's all working.

Talk Python's Mastodon Michael Kennedy's Mastodon