32 lines
681 B
Markdown
32 lines
681 B
Markdown
# Ddvic server playbooks
|
|
|
|
## Dependencies:
|
|
System:
|
|
```bash
|
|
# apt install python3 python3-pip python3-venv
|
|
```
|
|
|
|
Python:
|
|
|
|
```bash
|
|
python3 -m venv .venv
|
|
source ./.venv/bin/activate
|
|
pip install -r requirements.txt
|
|
```
|
|
Ansible (not needed for now):
|
|
|
|
```bash
|
|
ansible-galaxy install -r requirements.yml
|
|
```
|
|
|
|
## Start
|
|
Files:
|
|
- `./playbooks/files/wireguard/de.conf` - Wireguard config should be placed here before running the playbook (basically the peer file for the wireguard
|
|
- `inventory` - Should be checked if the host is correct one, also the pubkey should be included
|
|
|
|
Then start the root of repo and execute
|
|
```bash
|
|
ansible-playbook -i inventory deploy_forcad.yml
|
|
```
|
|
command.
|