Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Configuring Ansible

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content