mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
chore(pip): fix lints in role
This commit is contained in:
parent
0962644632
commit
354341647f
2 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
# For Python 3, use python3-pip.
|
# For Python 3, use python3-pip.
|
||||||
pip_package_name: python3-pip
|
pip_package_name: "python3-pip"
|
||||||
pip_executable: "{{ 'pip3' if pip_package_name.startswith('python3') else 'pip' }}"
|
pip_executable: "{{ 'pip3' if pip_package_name.startswith('python3') else 'pip' }}"
|
||||||
pip_executable_extra_args: ~
|
pip_executable_extra_args: ~
|
||||||
pip_environment_variables: {}
|
pip_environment_variables: {}
|
||||||
|
@ -8,5 +8,5 @@ pip_environment_variables: {}
|
||||||
pip_packages: []
|
pip_packages: []
|
||||||
|
|
||||||
pip_requirements_file: ~
|
pip_requirements_file: ~
|
||||||
pip_package_state: present
|
pip_package_state: "present"
|
||||||
pip_package_virtualenv: ~
|
pip_package_virtualenv: ~
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: Ensure Pip is installed.
|
- name: "Ensure Pip is installed."
|
||||||
package:
|
package:
|
||||||
name: "{{ pip_package_name }}"
|
name: "{{ pip_package_name }}"
|
||||||
state: present
|
state: "present"
|
||||||
|
|
||||||
- name: Install packages from list
|
- name: "Install packages from list"
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item.name | default(item) }}"
|
name: "{{ item.name | default(item) }}"
|
||||||
version: "{{ item.version | default(omit) }}"
|
version: "{{ item.version | default(omit) }}"
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
loop: "{{ pip_packages }}"
|
loop: "{{ pip_packages }}"
|
||||||
environment: "{{ pip_environment_variables }}"
|
environment: "{{ pip_environment_variables }}"
|
||||||
|
|
||||||
- name: Install packages from requirements file
|
- name: "Install packages from requirements file"
|
||||||
pip:
|
pip:
|
||||||
requirements: "{{ pip_requirements_file }}"
|
requirements: "{{ pip_requirements_file }}"
|
||||||
virtualenv: "{{ pip_package_virtualenv | default(omit) }}"
|
virtualenv: "{{ pip_package_virtualenv | default(omit) }}"
|
||||||
|
|
Loading…
Reference in a new issue