February 2018
Beginner
290 pages
7h 28m
English
Now, we will perform the following steps:
By default, Ansible expects the Ansible hosts file at the location /etc/ansible/hosts and it expects its configuration in a file called ansible.cfg in the current directory.
The contents of the Ansible host file (/etc/ansible/hosts) is as follows:
[sample-group]10.128.0.3
This simply means that there is a group called sample-group and it has only one server (10.128.0.3). We will now write a playbook file in order to install the Apache and start it.
Create an apache-playbook.yml file:
---- hosts: sample-group remote_user: alokshrivastwa ...
Read now
Unlock full access