This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/ansible
2022-01-15 10:46:27 +01:00
..
etc Update logcheck ignore after bullseye update 2022-01-15 10:46:27 +01:00
.gitignore Add ansible playbooks 2018-12-16 00:26:14 +00:00
ansible.cfg Add ansible playbooks 2018-12-16 00:26:14 +00:00
b2.cred.j2 Wrap up B2 setup 2019-12-14 23:04:28 +01:00
gitlab.cred.j2 Update registry cleaner 2019-12-14 13:02:50 +01:00
hosts Use python3 for ansible 2022-01-15 10:46:19 +01:00
loki.yml Upgrade to debian 11 bullseye 2022-01-14 21:34:48 +01:00
machine.yml Reformatted external USB 2019-12-14 14:11:09 +01:00
python.yml Use python3 for ansible 2022-01-15 10:46:19 +01:00
README.rst Split docker server setup from machine setup 2019-11-29 09:18:55 +01:00
root.bashrc Small fixes for things that came up in deployment 2018-12-16 20:45:58 +00:00
secrets.def.yml Add a backblaze backup script 2019-12-14 16:51:01 +01:00
ssh.yml Add default SSH port variable 2018-12-16 11:21:37 +00:00

Loki Ansible Playbooks
======================

Ansible playbooks for provisioning the server.

Requirements
------------

Make sure you have ``ansible`` installed.

Usage
-----

Before any provisioning

1. Copy ``secrets.def.yml`` to ``secrets.yml`` and fill out all the variables
2. Encrypt the file with

::

   ansible-vault encrypt secrets.yml

3. To run a playbook

::

   ansible-playbook --vault-id @prompt playbook.yml

From this point it is assumed you have a server which can accept SSH
connections and you have setup public key authentication.

To provision the server

1. First install ``python`` on the server which is required by ``ansible``

::

   ansible-playbook --vault-id @prompt python.yml

2. Configure the SSH daemon with a new port number and better security options

::

   ansible-playbook --vault-id @prompt ssh.yml

3. Set up the bare metal machine

::

   ansible-playbook --vault-id @prompt machine.yml

4. Install and start the dockerised ``loki`` server

::

   ansible-playbook --vault-id @prompt loki.yml