August 2017
Intermediate to advanced
332 pages
9h 16m
English
While the Ansible automation makes things identical and repeatable for multiple hosts, it is inevitable that servers may require some differences. For example, think of the application port number. It can be different depending on the machine. Luckily, Ansible provides variables, which is a good mechanism to deal with server differences. Let's create a new playbook and define a variable.
For example, think of the application port number. It can be different depending on the machine. Luckily, Ansible provides variables, which is a good mechanism to deal with server differences. Let's create a new playbook and define a variable.
---- hosts: web1 vars: http_port: 8080
The configuration defines the http_port variable with the value ...
Read now
Unlock full access