mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2025-01-16 19:51:42 +01:00
Optional extra arguments for pip install (#24)
Change-Id: I80a2081962d0636400492c99973aff69d28955e5 Co-authored-by: Morgan Lindqvist <Morgan@quzed.com>
This commit is contained in:
parent
4ac86968ff
commit
e96ad2577f
@ -20,6 +20,10 @@ Whether to install Ansible via the system `package` manager (`apt`, `yum`, `dnf`
|
||||
|
||||
If `ansible_install_method` is set to `pip`, the specific Ansible version to be installed via Pip. If not set, the latest version of Ansible will be installed.
|
||||
|
||||
ansible_install_pip_extra_args: ''
|
||||
|
||||
If `ansible_install_method` is set to `pip`, the extra arguments to be given to `pip` are listed here. If not set, no extra arguments are given.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
@ -38,6 +42,7 @@ Install from pip:
|
||||
vars:
|
||||
ansible_install_method: pip
|
||||
ansible_install_version_pip: "2.7.0"
|
||||
ansible_install_pip_extra_args: "--user"
|
||||
roles:
|
||||
- role: geerlingguy.pip
|
||||
- role: geerlingguy.ansible
|
||||
|
@ -6,3 +6,6 @@ ansible_install_method: package
|
||||
|
||||
# Used only if ansible_install_method is 'pip'. If empty, defaults to latest.
|
||||
ansible_install_version_pip: ''
|
||||
|
||||
# Which extra arguments should be gived to pip
|
||||
ansible_install_pip_extra_args: ''
|
||||
|
@ -6,6 +6,7 @@
|
||||
vars:
|
||||
ansible_install_method: pip
|
||||
ansible_install_version_pip: "2.6.2"
|
||||
ansible_install_pip_extra_args: "--user"
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.pip
|
||||
|
@ -3,3 +3,4 @@
|
||||
pip:
|
||||
name: ansible
|
||||
version: "{{ ansible_install_version_pip | default(omit) }}"
|
||||
extra_args: "{{ ansible_install_pip_extra_args | default(omit) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user