[FIX] option to select default pip3 executable
This commit is contained in:
parent
e83253598f
commit
894539c5c8
|
@ -20,6 +20,9 @@ This role uses the apt package manager on Debian based hosts.
|
|||
But for some operating systems the `ansible_os_family` variable is not set to "Debian" by the fact gathering even if it is Debian based (like Mendel GNU/Linux on the Google Coral Dev Board).
|
||||
- `override_os_family`: Set to "Debian" in the host inventory, if `ansible_os_family` is not set correctly
|
||||
|
||||
On macOS, it might be needed to specify the full path to the pip3 executable:
|
||||
- `override_pip_exe`: Set a custom pip executable (default: n.a.)
|
||||
|
||||
The User Setup will change the user shell and global gitconfig. This can be disabled:
|
||||
- `usersetup_chsh`: Boolean to enable changing the user shell to zsh (default: true)
|
||||
- `usersetup_gitconfig`: Boolean to disable overriding the global gitconfig (default: true)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
# defaults file for common
|
||||
|
||||
default_pip3_exe: pip3
|
||||
|
||||
# just copy dotfiles (for foreign hosts like webhosting)
|
||||
common_settingsonly: false
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
name:
|
||||
- autopep8
|
||||
# - pylint # must be installed in each venv individually!
|
||||
executable: /usr/local/bin/pip3
|
||||
executable: "{{ override_pip_exe | default(default_pip3_exe) }}"
|
||||
when: user_lang_python == true
|
||||
- name: vscode - Python
|
||||
block:
|
||||
|
|
Loading…
Reference in a new issue