Skip to content

Ansible code to deploy certain parts of the QC server

License

Notifications You must be signed in to change notification settings

Queercraft/ansible_project_queercraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible

This repository contains Ansible playbooks and roles for certain configuration of the Queercraft server.

You might also want to check out the Terraform repository for the server, which can be found here

Contents

Roles:

Role Description
nginx_config Configures nginx to serve redirects and revere proxies to applications running on the server.
ufw_config Configures the firewall to allow access to Minecraft through TCPShield.

Usage

To use these playbooks, you must have Ansible installed on your machine. You can install Ansible using your package manager, or by following the instructions on the Ansible website.

The inventory/main file contains the hostname of the server as configured in your ~/.ssh/config file. Make sure you can connect to the server using the ssh command before running the playbooks.

To run a playbook, use the following command: (-K prompts for the sudo password of the user)

ansible-playbook -i inventory/main playbooks/main.yml -K

To limit the playbook to a specific role, use the --tags flag. For example, to run only the nginx_config role:

ansible-playbook -i inventory/main playbooks/main.yml -K --tags nginx

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages