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/README.rst

51 lines
927 B
ReStructuredText
Raw Normal View History

2018-12-16 01:25:02 +01:00
Loki Ansible Playbooks
======================
Ansible playbooks for provisioning the server.
Requirements
------------
Make sure you have ``ansible`` installed.
Usage
-----
Before any provisioning
2018-12-16 01:28:11 +01:00
1. Copy ``secrets.def.yml`` to ``secrets.yml`` and fill out all the variables.
2018-12-16 01:27:28 +01:00
2. Encrypt the file with
2018-12-16 01:25:02 +01:00
::
ansible-vault encrypt secrets.yml
2018-12-16 01:27:28 +01:00
3. To run a playbook
2018-12-16 01:25:02 +01:00
::
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
2018-12-16 01:27:28 +01:00
1. First install ``python`` on the server which is required by ``ansible``
2018-12-16 01:25:02 +01:00
::
ansible-playbook --vault-id @prompt python.yml
2018-12-16 01:27:28 +01:00
2. Configure the SSH daemon with a new port number and better security options.
2018-12-16 01:25:02 +01:00
::
ansible-playbook --vault-id @prompt ssh.yml
2018-12-16 01:27:28 +01:00
3. Run the remaining setup.
2018-12-16 01:25:02 +01:00
::
ansible-playbook --vault-id @prompt loki.yml