Skip to content

A PoC repository containing Ansible roles for configuring an EC2 instance and setting up a web server using docker.

Notifications You must be signed in to change notification settings

dev-opus/ansible_roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Roles

This repository contains Ansible roles for managing various aspects of a server setup. Below is a brief overview of the roles and their purposes.

Roles

docker

This role is responsible for setting up and configuring Docker on a server. It includes tasks for installing Docker, configuring Docker settings, and ensuring the Docker service is running.

Directory Structure

  • tasks/: Contains the main tasks to set up Docker.
  • handlers/: Contains handlers that are triggered by tasks.
  • files/: Contains static files that need to be copied to the server.
  • vars/: Contains variables used by this role.
  • meta/: Contains metadata about the role, including dependencies.

Important Files

  • tasks/main.yml: The main entry point for the tasks to be executed by this role.
  • handlers/main.yml: The main entry point for the handlers.
  • files/: Directory for static files like custom scripts or configuration files.
  • vars/main.yml: Variables specific to this role.
  • meta/main.yml: Metadata about the role.

webserver

This role is responsible for setting up and configuring a web server that consists of a reverse-proxy (Nginx) and a Node.js REST API. Both services are containerised and are served via Docker Compose. This role includes tasks for installing necessary packages (copying artifacts), configuring the web server, and ensuring it is running.

Directory Structure

  • tasks/: Contains the main tasks to set up the web server.
  • files/: Contains static files that need to be copied to the server.
  • meta/: Contains metadata about the role, including dependencies.

Important Files

  • tasks/main.yml: The main entry point for the tasks to be executed by this role.
  • files/: Directory for static files like custom scripts or configuration files.
  • meta/main.yml: Metadata about the role.

Usage

To use these roles in your playbook, include them as follows:

- hosts: servers
  roles:
    - docker
    - webserver

License

This project is licensed under the MIT License.

Author

Victor Orlunda

About

A PoC repository containing Ansible roles for configuring an EC2 instance and setting up a web server using docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published