Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lightbulb/examples/nginx-role/
lightbulb/examples/nginx-role/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

nginx-roles

This example demonstrates how roles are structured and used in a playbook. In communicating these concepts, this example is simply a refactoring of the nginx-basic-playbook and nginx-remove-playbook examples into a role.

This example requires Ansible v2.2 or later. It uses the include_role module that introduced in that version.

This also example assumes that the EPEL repo has already be enabled on each host. This was intentionally left out to keep this example focused.

This example is also the solution to the primary assignment and extra credit assignments in workshop/roles.