RHCE 8 - Understanding Ansible Inventory Files on Red Hat Enterprise Linux 8

Опубликовано: 16 Август 2019
на канале: theurbanpenguin
5,209
108

In this video we take a look at how we can understand and control the Ansible Inventory/ This inventory allows us to specify the hosts that we want to work with for a particular ad-hoc command or play. The default location for the inventory file is /etc/ansible/hosts; but we would not normally work with a system wide file but it is great for examples. Using the command ansible all --list-hosts we can list the inventory that we have. The group all is a builtin group to specify all hosts in the file. We can also create our own groups perhaps based on location or purpose. We can also have nested groups. especially useful for locations. We run this training a RHEL 8 as the new RHCE certification required Ansible knowledge but you can equally use another system such as CentOS 7

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