|
|
|
|
@ -1,32 +1,13 @@
|
|
|
|
|
# Prepare ansible Installation
|
|
|
|
|
|
|
|
|
|
## Option 1
|
|
|
|
|
- Install ansible with Python.
|
|
|
|
|
- Install library jmespath (https://jmespath.org/). Will be used to parse JSON data.
|
|
|
|
|
- Install hcloud (python library for hetzner)
|
|
|
|
|
|
|
|
|
|
pip3 install ansible jmespath hcloud netaddr
|
|
|
|
|
|
|
|
|
|
OR
|
|
|
|
|
## Install needed python pip packages
|
|
|
|
|
|
|
|
|
|
pip3 install -r pip-requirements
|
|
|
|
|
|
|
|
|
|
## Option 2
|
|
|
|
|
- Install python dependencies with poetry
|
|
|
|
|
|
|
|
|
|
poetry install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install needed ansible collections / roles
|
|
|
|
|
|
|
|
|
|
## Without poetry
|
|
|
|
|
## Install needed ansible collections / roles
|
|
|
|
|
|
|
|
|
|
ansible-galaxy install -r galaxy-requirements.yml
|
|
|
|
|
|
|
|
|
|
## With poetry
|
|
|
|
|
|
|
|
|
|
poetry run ansible-galaxy install hetzner.hcloud
|
|
|
|
|
|
|
|
|
|
# Setup
|
|
|
|
|
Create/Start servers for stage-dev
|
|
|
|
|
|
|
|
|
|
|