2020-01-03 17:06:50 +01:00
|
|
|
# VPS set up playbooks
|
2020-01-03 12:26:46 +01:00
|
|
|
|
2020-01-03 17:06:50 +01:00
|
|
|
Contains ansible playbooks to set up VPS instances.
|
|
|
|
|
2020-01-03 17:13:27 +01:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
A virtual host installed with Ubuntu Server 18. You will need the root password initially.
|
|
|
|
You should have a password for the new SSH login user ready.
|
|
|
|
|
2020-01-03 19:07:54 +01:00
|
|
|
Technical dependencies on host machine (Python 2.7 or 3.5+):
|
|
|
|
|
|
|
|
* python / python3
|
|
|
|
* python-pip / python3-pip
|
|
|
|
* python-apt / python3-apt
|
|
|
|
|
|
|
|
Technical dependencies on managed machines:
|
|
|
|
|
|
|
|
* python / python3
|
|
|
|
|
|
|
|
Install further dependencies on the host machine: ``pip install -r requirements.txt``
|
|
|
|
|
2020-01-03 17:06:50 +01:00
|
|
|
## Usage
|
|
|
|
|
2020-01-04 11:51:42 +01:00
|
|
|
After cloning the repo to your ansible host, copy ``hosts.example`` to
|
|
|
|
``hosts`` and fill the file appropriately. If you use Python 3 on the managed
|
|
|
|
machine, you probably need to adapt the ``ansible_python_interpreter``
|
|
|
|
variable.
|
|
|
|
|
|
|
|
Furthermore, you have to copy the ``*_vars.yml.example`` files and
|
|
|
|
update the variable values.
|
|
|
|
|
|
|
|
The initial setup assumes an OVH VPS machine (login via root password).
|
|
|
|
If your machine already has a login user with passwordless sudo and a
|
|
|
|
locked root password (Ubuntu default) then you can directly start with
|
|
|
|
the other playbooks.
|
2020-01-03 19:07:54 +01:00
|
|
|
|
|
|
|
As of now Ubuntu Server 18 installations are expected.
|
2020-01-03 17:06:50 +01:00
|
|
|
|
2020-01-03 17:13:27 +01:00
|
|
|
* initial setup: ``ansible-playbook -i hosts initial-setup.yml --ask-pass``
|
|
|
|
* collabora setup: ``ansible-playbook -i hosts collabora.yml``
|
2020-01-04 11:51:42 +01:00
|
|
|
* drone setup: ``ansible-playbook -i hosts drone.yml``
|
|
|
|
* collabora + drone setup: ``ansible-playbook -i hosts site.yml``
|