Commit 2cf9deb1 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Update docs...

parent e94b97ba
Loading
Loading
Loading
Loading
+12 −17
Original line number Diff line number Diff line
@@ -46,43 +46,38 @@ Sometimes comes very handy to deploy the whole OP platform locally using [Kind](

## Installation (Control Node)

### 1. Install Ansible and Dependencies
### 1. Install Dependencies

It is recommended to use a Python virtual environment to isolate dependencies.

Install Python virtual environment support (Ubuntu/Debian example):
**1. Create and activate the virtual environment:**

```bash
sudo apt update
sudo apt install python3-virtualenv python3-pip
```

Create and activate the virtual environment:
# Ubuntu/Debian: Ensure venv is installed
sudo apt update && sudo apt install -y python3-virtualenv python3-pip

```bash
# Create venv
python3 -m venv venv
source venv/bin/activate
```

Install Ansible and required Python libraries:
**2. Install Python libraries:**

Instead of installing packages manually, use the project's requirements file to ensure you have the correct compatible versions.

```bash
pip install ansible kubernetes docker
pip install -r ansible/requirements.txt
```

### 2. Install Required Collections

Install the necessary Ansible collections:
Install the necessary Ansible collections defined in the project:

```bash
cd ansible
ansible-galaxy collection install -r requirements.yml
ansible-galaxy collection install -r ansible/requirements.yml
```

This installs:
- `kubernetes.core` - Kubernetes resource management
- `community.docker` - Docker operations
- `community.general` - General utilities
This installs dependencies like `kubernetes.core` and `community.docker` automatically.

### 3. Configure Inventory