Something went wrong on our end
-
Baptiste DE RENZO authoredBaptiste DE RENZO authored
requirements.md 1.36 KiB
Prepare deployment environment
This installation has only been tested on Debian Linux.
Setup tools
This installation is detailled for a Debian server. All the commands below are executed with root rights.
Install tools
apt update
apt upgrade -y
apt install -y vim git make gcc python3-dev
Repository
Clone this repository on your computer:
cd /root
git clone https://git.ubicast.net/sys/ansible-public.git
cd ansible-public
Python and ansible
Create manually a virtual environment with Python's venv or with the package virtualenv.
# create the venv
apt-get install -y python3-venv
python3 -m venv ansible-venv
# activate the venv
source ansible-venv/bin/activate
# install ansible requirements
python3 -m pip install -U pip wheel
python3 -m pip install -r requirements.txt
Testing
To make sure Ansible is properly installed, run this command:
# verfiy ansible version
ansible --version
ansible X.X.X
config file = None
configured module search path = ['/home/ubicast/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ubicast/.local/lib/python3.X/site-packages/ansible
executable location = /home/ubicast/.local/bin/ansible
python version = 3.X.X (default, ...)