June 2017
Intermediate to advanced
536 pages
9h 49m
English
Back on our workstation machine, let's go ahead and create a project directory:
mkdir mphp7cd mphp7/
Now, let's go ahead and create an ansible.cfg file with its content as follows:
[defaults]hostfile = hosts
Next, let's go ahead and create the hosts file with its content as follows:
[mphp7]45.76.88.214 ansible_ssh_user=root
In the preceding lines of code, 45.76.88.214 is the IP address of our server machine.
We should now be able to run the ansible tool as follows:
ansible mphp7 -m ping
Ideally, this should give us the following output:

The ansible tool might throw a MODULE FAILURE message in the case of a missing ...