Commit ec291f68 authored by nanahira's avatar nanahira

pip

parent fa2dd2b6
Pipeline #26906 failed with stage
in 23 minutes and 24 seconds
......@@ -38,7 +38,7 @@
become: true
pip:
name: docker-compose,docker==6.1.3
executable: /usr/local/bin/pip
executable: '{{pip_executable}}'
extra_args: '--no-build-isolation --ignore-installed'
#when: ansible_python.version.major == 3
- name: docker 创建目录
......
......@@ -88,11 +88,16 @@
executable: '{{pip_executable_install}}'
state: latest
#when: ansible_python.version.major == 3
- name: check pip location
shell: whereis pip | sed -e 's/ /\n/g' | grep bin/pip | tail -n 1
changed_when: false
register: pip_location_result
- name: pip package list
set_fact:
pip_package_list: 'autopep8'
pip_executable: '{{pip_location_result.stdout}}'
- name: pip packages
become: true
pip:
name: '{{pip_package_list}}'
executable: /usr/local/bin/pip
executable: '{{pip_executable}}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment