932
edits
Changes
m
→Investigation 1: Installing Ansible on Your Host Machine
There are commercial and open source configuration management systems which aware of and know how to handle such difference in operating platforms. '''Ansible''' is a CMS (Content Management System) that we are going to study for this lab. In this lab, we will start by trying to convert the script that you have written for configuring Nagios on CentOS 7 to an Ansible playbook, test it on your testing environment and then deploy it to a new VM.
==Investigation 1: Installing Ansible on Your Host Machine==*Install the Ansible package on one of your host machineVMs (we will refert to that as the server).*If you have not already done so, create an SSH key-pair for the '''root user on your hostserver''' and transfer the public portion of it to your VMsanother VM (we will refer to it as the client). Ensure that you can use it to ssh to root on your VMs the other VM without entering a password.*Modify the inventory file on your host server to include the fully qualified domain names of your VMsclient VM.*Use the '''setup module''' to verify that your Ansible host server can run plays on your VMsclient VM.
==Investigation 2: Creating an Ansible Playbook==