Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1020 Bytes

README.md

File metadata and controls

44 lines (25 loc) · 1020 Bytes

Setting up with Ansible

Start by getting ansible on your host:

http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine

Add some ansible galaxy packages (may require sudo to install on your machine)

ansible-galaxy install antoiner77.caddy

Setup the ENV if you want to operate outside of the repo:

export ANSIBLE_REPO="$(git rev-parse --show-toplevel)"
export ANSIBLE_CONFIG="${ANSIBLE_REPO}/ansible/ansible.cfg"
export ANSIBLE_INVENTORY="${ANSIBLE_REPO}/ansible/hosts"
ls -l "${ANSIBLE_CONFIG}" "${ANSIBLE_INVENTORY}"

Check the connectivity

ansible all -m ping

Deploy

ansible-playbook site.yml

Setup hosts file

Setup a hosts file

[prometheus]
prometheus-server

[grafana]
grafana-server

Optional variables that you might need

node ansible_host=X.X.X.X go_arch=arm64

Submodules

This repo includes git submodules to vendor external source. You need to update them with this helper command.

./update-submodules.sh