RHCE 8 - Building Ansible YAML Inventory Files on RHEL 8

Описание к видео RHCE 8 - Building Ansible YAML Inventory Files on RHEL 8

As the new RHCE requires Ansible knowledge with the EX294 exam we concentrate now on looking at Ansible YAML inventory files. Using the YAML format with inventory gives us the experience working with YAML that we will need with Playbooks later. These also become an easier way to assign variables to hosts or groups than with the INI format.

Using vim as the text editor we can make sure that it works well with YAML files by adding our own customizations through to the ~/.vimrc file:
autocmd FileType yaml setlocal ai ts=2 sw=2 et

YAML does not use tabs so we have to expand tabs to spaces and we reduce the indent level

We can then start building the inventory files and nesting group before setting variables for our location groups. All of this using Red Hat Enterprise Linux 8 and Ansible 2.8

Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Autho... and take time to see my own site http://www.theurbanpenguin.com

Комментарии

Информация по комментариям в разработке