feat: aggiunta la directory 3_installazione
This commit is contained in:
parent
b9fb407d25
commit
0eb3d05127
2 changed files with 43 additions and 0 deletions
42
3_installazione/README.md
Normal file
42
3_installazione/README.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Alcuni esempi pratici per installare Ansible
|
||||
|
||||
|
||||
1) Installare ansible da pacchetto:
|
||||
- Installazione su OracleLinux8
|
||||
```
|
||||
dnf install ansible-core -y
|
||||
```
|
||||
- Installazione su OracleLinux9
|
||||
```
|
||||
dnf install ansible-core -y
|
||||
```
|
||||
- Installazione du Debian12
|
||||
```
|
||||
apt-get update
|
||||
apt-get install ansible -y
|
||||
```
|
||||
|
||||
2) Installare Ansible con venv python:
|
||||
Per eseguire questo tipo di installazione è necessario installare il pacchetto python3-venv
|
||||
|
||||
- Versione di default:
|
||||
```
|
||||
mkdir venv_default
|
||||
cd venv_default
|
||||
python3 -m venv ansible
|
||||
source ansible/bin/activate
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install ansible
|
||||
```
|
||||
- Versione specifica:
|
||||
mkdir venv29
|
||||
cd venv29
|
||||
python3 -m venv ansible2.9
|
||||
source ansible2.9/bin/activate
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install ansible==2.9
|
||||
|
||||
Verificare che l'installazione sia avvenuta correttamente controllando la versione con il seguente comando:
|
||||
```
|
||||
ansible --version
|
||||
```
|
||||
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
## Alcuni esempi pratici
|
||||
Contenuto delle directory:
|
||||
- 3_installazione ← esempi su varie modalita' di installazione
|
||||
- 8_variabili ← esempi sull'utilizzo delle variabili
|
||||
- 9_template ← esempi sull'utilizzo dei template
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue