Install Ansible development tools
You have two options for installing Ansible development tools, so that you can choose the installation method that best suits your preferred operating system and development environment.
Red Hat provides two options for installing Ansible development tools.
- Installation on a RHEL container running inside VS Code. You can install this option on MacOS, Windows, and Linux systems.
- Installation on your local RHEL system using an RPM (Red Hat Package Manager) package.
- Requirements
To install and use Ansible development tools, you must meet the following requirements. Extra requirements for Windows installations and containerized installations are indicated in the procedures. - Install and configure VS Code
Install VS Code by following the instructions found on the Download Visual Studio Code page in the official documentation. - Install and configure the Dev Containers extension
If you are installing the containerized version of Ansible development tools, you must install the Microsoft Dev Containers extension in VS Code. - Set the lanaguge for the VS Code extension
The Ansible VS Code extension works only when the language associated with a file is set to Ansible. The extension provides features that help create Ansible playbooks, such as auto-completion, hover, and diagnostics. - Install Ansible development tools on a container inside VS Code
The Dev Containers VS Code extension requires a.devcontainerfile to store settings for your dev containers. You must use the Ansible extension to scaffold a config file for your dev container, and reopen your directory in a container in VS Code. - Install Ansible development tools from an RPM package
Ansible development tools are bundled in the Ansible Automation Platform RPM (Red Hat Package Manager) package. Refer to the RPM installation documentation for information on installing Ansible Automation Platform. - Configure Red Hat AI providers in the Ansible VS Code extension
You can configure the Ansible VS Code extension to interact with models hosted on Red Hat AI infrastructure such as the RHEL AI Inference Server and OpenShift AI.