From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using system roles

Using system roles

In this video, you'll learn about system roles. So what are system roles? Well, they come from the Linux system roles package, and that's a package that provides different roles that were developed for common tasks. On RHEL, these roles are provided in the RHEL system roles RPM package, or by using the redhead.relsystemrolls collection, depending on which way you want to go. You can use either solution. A collection based version of the roles can be installed through fedora.linuxsystemrolls if you are not in the RHEL ecosystem. You know, redhead.relsystemrolls that is a part of Ansible automation platform that requires you to have access to the to the platform. So you need a subscription. If you don't want to use a subscription, just use Fedora.LinuxSystemRoles. And after installing the role, you can access the documentation, which includes examples. And that's really a pretty neat way of doing so. So if you have installed the Red Hat RPM, you can use user-shared doc rel system roles.…

Contents