From the course: Red Hat Certified Engineer (EX294) Cert Prep: 3 Managing Systems with Ansible

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Modules for managing services and tasks

Modules for managing services and tasks

From the course: Red Hat Certified Engineer (EX294) Cert Prep: 3 Managing Systems with Ansible

Start my 1-month free trial

Modules for managing services and tasks

- Most of what we'll use Ansible for is managing saved configuration. Meaning we install software packages, create users and configuration files, and set up the state in which we want the Manage hosts to be. Now let's talk about processes, services and tasks. We've talked about how to install software. When we install a software package installs programs on the disk. These may be regular programs designed to be run by a user, or more likely in our case, they may be programs that will run in an automated fashion. At the simplest level, we may run a program once at a certain time. For this would use the at Module, which schedules the execution of a command or script file via the at command. If we want the program to run at regular intervals, as opposed to just once will use the cron Module. If you know how to use cron, then creating a task using the cron Module will be fairly easy. In this example, we create a cron…

Contents