From the course: Automating Kubernetes with GitOps
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Setting up Ansible - Kubernetes Tutorial
From the course: Automating Kubernetes with GitOps
Setting up Ansible
- In this video, I'll show you how to get started with Ansible. So, in order to set it up, we need a control host. In the control host, I'm going to use the latest version of CentOS. It does run on Ubuntu as well, but I want to use CentOS. That's because Ansible is closely related to Red Hat, and CentOS is a part of the Red Hat family. You need to make sure that you have host name resolving for all of the managed hosts, generate SSH keys and copy over to the managed host. And then you install the Ansible software and you create the so-called inventory file. I'll show you in a bit. Now, what do we need on the managed host? Well on the managed host, we need to ensure that we have anything that is manageable. In this demo, I'm going to use the latest version of Ubuntu Server LTS, and next, ensure that Python is installed, and enable key-based SSH access, and make sure that you have a user with passwordless sudo privileges. Let's go for it. So here, you can see the steps that I'm going to…