qenya/vscode: Run Ansible inside a venv

This commit is contained in:
Katherina Walshe-Grey 2025-12-06 14:01:08 +00:00
parent 31f1036c17
commit 33fae52e47
2 changed files with 4 additions and 4 deletions

3
.gitignore vendored
View file

@ -5,3 +5,6 @@ result-*
# ---> Ansible
*.retry
# https://github.com/ansible/ansible-lint/issues/4533
.ansible/

View file

@ -31,11 +31,8 @@ in
redhat.vscode-yaml
];
userSettings = {
"ansible.ansible.path" = "${pkgs.ansible}/bin/ansible";
"ansible.validation.lint.enabled" = true;
"ansible.validation.lint.path" = "${pkgs.ansible-lint}/bin/ansible-lint";
"ansible.ansibleNavigator.path" = "${pkgs.ansible-navigator}/bin/ansible-navigator";
"ansible.python.interpreterPath" = "${pkgs.python3}/bin/python";
"ansible.python.interpreterPath" = "\${workspaceFolder}/.venv/bin/python"; # needs some manual one-time setup per repo, but it's better than fucking with FHS
"ansible.lightspeed.enabled" = false;
"css.format.spaceAroundSelectorSeparator" = true;
"css.format.newlineBetweenSelectors" = false;