Need help with ansible extension in Windsurf (VS Code)

Hello everyone!

I need help with installing and configuring the Ansible extension on Fedora 42, in Windsurf (VS Code Alternative).

I have some experience with Ansible, I wrote a few playbooks that help me configure servers and everything works fine. But recently I found out that there is an Ansible extension for VS Code / Windsurf and decided to install it. And then all hell broke loose.

It sounds weird, but I can’t configure this extension. Ansible is installed, its playbooks work if I run them with the ansible-playbook command. The linter ansible-lint also works. Ansible-dev-tools is installed with the command python3 -m pip install ansible-dev-tools. But if I open the Ansible extension in Windsurf, I always see this message:

Looks like you don’t have an Ansible environment set up yet. Follow the Create Ansible environment walkthrough, or switch to another environment that has the setup ready.

I don’t understand what exactly it needs. According to the Windsurf tray, the extension successfully recognized the location of Python and Ansible and detect their versions. I tried reading the documentation, but I still can’t figure out where I went wrong and what I’m doing wrong

And there’s another one that constantly drives me crazy. If the Ansible extension is active and I click on any symbol in the Playbook, I constantly get a warning. It appears in the lower left corner of the screen:

Cursor should be positioned on the line after the task name or a comment line within task context to trigger an inline suggestion.

P.S.: I have another PC with Windows 11 and Fedora-42 in WSL 2. In this case I tried to setup Ansible extension in windows-based Windsurf and faced with only 1 issue – anisble-lint was not installed in WSL. After I install it manually and set path to python in extension setting – everything works fine.