June 2018
Beginner
578 pages
13h 39m
English
Ansible has its own built-in console. Personally, it is not something I have used much at all. To start the console, we simply need to run one of the following commands:
$ ansible-console -i hosts$ ansible-console -i hosts london$ ansible-console -i hosts nyc
The first of the three commands targets all of the hosts, while the next two just target the named groups:

As you can see from the Terminal output, you are asked for an Ansible Vault password. Just enter anything here as we do not have anything protected by Ansible Vault; more on that later in the chapter. Once connected, you can see that I am connected to ...
Read now
Unlock full access