chore(pip): fix lints in role

This commit is contained in:
Jan Christian Grünhage 2023-02-21 15:30:44 +01:00
parent 0962644632
commit 354341647f
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
2 changed files with 6 additions and 6 deletions

View file

@ -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: ~

View file

@ -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) }}"