September 2018
Beginner to intermediate
214 pages
5h 53m
English
We can install Ansible roles in a number of ways. The simplest method is to use the command line with the option install, as follows:
ansible-galaxy install geerlingguy.ntp
Alternatively, we can personalize our installation command by choosing which version we would like from which source. This can be done as follows:
ansible-galaxy install geerlingguy.ntp,v1.6.0ansible-galaxy install git+https://github.com/geerlingguy/ansible-role-ntp.git
We can also install multiple roles at one time using a YAML requirement file. The command line looks as follows:
ansible-galaxy install -r requirements.yml
The requirements file has a YAML structured file that contains instructions about how to install the different roles ...
Read now
Unlock full access