From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using ansible-navigator to run playbooks

Using ansible-navigator to run playbooks - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Using ansible-navigator to run playbooks

So you have just seen how to run playbooks with Ansible Playbook. Let's also have a close look at how to run playbooks with Ansible Navigator. So Ansible Navigator takes the run argument and maybe you want to specify some command line options depending on your Ansible Navigator configuration. So minus m standard out if you want to print the result to the standard output instead of opening the TUI. And minus pp never if you have not provided this option in the Ansible configuration. Minus pp is for the pool policy, by the way. And never will never look for newer container images, which does assume that you do have container images locally available already. So let's check it out and see how we can use the numbers in the output to get more information about the different steps. So AnsibleNavigator minus m, standard out of example.yaml, that should do it. And as you can see, oh boy, what do we have? We have an invalid choice. Why do we have an invalid choice? Because we need a command…

Contents