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
Watch video RHCE 8 - Understanding Ansible Inventory Files on Red Hat Enterprise Linux 8 online without registration, duration hours minute second in high quality. This video was added by user theurbanpenguin 16 August 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,209 once and liked it 108 people.