qenya/vscode: Run Ansible inside a venv
This commit is contained in:
parent
31f1036c17
commit
33fae52e47
2 changed files with 4 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -5,3 +5,6 @@ result-*
|
|||
|
||||
# ---> Ansible
|
||||
*.retry
|
||||
|
||||
# https://github.com/ansible/ansible-lint/issues/4533
|
||||
.ansible/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue