Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
/ ansible Public archive

One repo to rule them all

Notifications You must be signed in to change notification settings

ergoplatform/ansible

Repository files navigation

Ansible for Ergoplatform

This is the Ansible repository for Ergoplatform infrastructure management.

Installation and usage

Checkout from repository:

git pull git@github.com:ergoplatform/ansible.git
cd ansible

Install git submodules:

git submodule add git@github.com:andyceo/ansible-role-docker.git roles/andyceo.docker
git submodule add git@github.com:andyceo/ansible-role-preconf.git roles/andyceo.preconf
git submodule add git@github.com:andyceo/ansible-role-users.git roles/andyceo.users
git submodule add git@github.com:andyceo/ansible-role-ntp.git roles/andyceo.ntp
git submodule add git@github.com:andyceo/ansible-role-configurator.git roles/andyceo.configurator
git submodule add git@github.com:andyceo/ansible-role-telegraf.git roles/andyceo.telegraf
git submodule add git@github.com:andyceo/ansible-role-mailutils.git roles/andyceo.mailutils
git submodule add git@github.com:andyceo/ansible-role-git.git roles/andyceo.git
git submodule add git@github.com:andyceo/bash_scripts.git files/3dparty/bash_scripts

Execute playbook servers.yml:

ansible-playbook servers.yml

Documentation

See docs directory and Ergoplatform Infrastructure Overview for quick introduction.

Use FAQ for asking questions and receiving answers and updated documentation.

Services

Get Let's Encrypt certificate with Certbot docker image

docker run -it --rm --name certbot
-v /data/certbot/etc:/etc/letsencrypt:rw
-v /data/certbot/lib:/var/lib/letsencrypt:rw
-v /data/certbot/log:/var/log/letsencrypt:rw
-v /data/certbot/webroot:/webroot:rw
certbot/certbot certonly --no-self-upgrade --agree-tos --text
--non-interactive --keep-until-expiring --expand --webroot --email YOUR@EMAIL.COM
-w /webroot -d EXAMPLE.COM