From the course: Complete Guide to Configuration Management Using Ansible

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Setting up a RHEL Ansible control node

Setting up a RHEL Ansible control node

All right. In this video, we are going to set up a control node. Well, we are going to set up three control nodes. I'll show you the procedure on different Linux distributions because, depending on your distribution, you might select a different approach. So what are the requirements? Well, any operating system can be configured as a control node. And in this course, I will focus on Red Hat family Linux. But that doesn't mean that you can't install Ansible on Ubuntu, for instance. Feel free to do so. I'm even going to show you how to set up an Ubuntu-based control node. You need software from the ansible-core package. That package is commonly available in most of the distribution repositories. If you don't want to provide configuration settings every time you run an ansible command, you also need an ansible.cfg for the default settings. And an inventory file, that's mandatory because that will identify the managed hosts. There's a default inventory file, etc/ansible/hosts, that is…

Contents