diff --git a/README.md b/README.md index e1e3ca3..bf7faaf 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/defaults/main.yml b/defaults/main.yml index f5703fa..3ff0f24 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,8 @@ --- # defaults file for common +default_pip3_exe: pip3 + # just copy dotfiles (for foreign hosts like webhosting) common_settingsonly: false diff --git a/tasks/devel.yml b/tasks/devel.yml index 959e563..f40ac4e 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -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: