This repository contains Ansible roles for managing various aspects of a server setup. Below is a brief overview of the roles and their purposes.
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.
- 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.
- 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.
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.
- 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.
- 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.
To use these roles in your playbook, include them as follows:
- hosts: servers
roles:
- docker
- webserverThis project is licensed under the MIT License.
Victor Orlunda