Installation

VS Code Extention:

Ansible - Visual Studio Marketplace

Official docs:

Installing Ansible - Ansible Documentation

ansible-core

ansible-core Version Control node Python Managed node Python
2.11 Python 2.7, Python 3.5 - 3.9 Python 2.6 - 2.7, Python 3.5 - 3.9
2.12 Python 3.8 - 3.10 Python 2.6 - 2.7, Python 3.5 - 3.10
2.13 Python 3.8 - 3.10 Python 2.7, Python 3.5 - 3.10
2.14 Python 3.9 - 3.11 Python 2.7, Python 3.5 - 3.11

Preferred way to install latest ansible

python3 -m pip install --user ansible

Check if installation was successful:

ansible --version

Adding to path

ansible-lint

ansible-lint/installing.md at main · ansible/ansible-lint

python3 -m pip install ansible-lint

Project structure

playbooks/
├── all.yml
├── inventory/
│   └── cluster  # .ini file without extention
└── preconfig/
    ├── defaults/
    ├── files/
    ├── handlers/
    ├── library/
    ├── meta/
    │   └── main.yml
    ├── services/
    ├── tasks/
    │   └── main.yml
    └── vars/