---
# System prepended metadata

title: 'installation ansible :'

---

# installation ansible : 

```
sudo apt update
```

```
sudo apt upgrade
```

```
sudo apt install software-properties-common
```


```
sudo apt-add-repository ppa:ansible/ansible
```


```
sudo apt update
```

```
sudo apt install ansible
```

```
sudo apt install python3-argcomplete
```


```
sudo activate-global-python-argcomplete3
```

- création clé ssh
```
ssh-keygen -t rsa -b 4096 -C "My ansible key"
```

- installation az cli
```
curl -sl https://aka.ms/InstallAzureCLIDeb | sudo bash
```

- faire les credentials
```
```
- install azure.azcollection
```
ansible-galaxy collection install azure.azcollection
```

```
pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
```
