Commit 8d29071a authored by nanahira's avatar nanahira

fix docker in debian 13

parent 83b8dadb
Pipeline #40592 failed with stage
in 4 minutes and 18 seconds
......@@ -39,7 +39,7 @@
pip:
name: docker-compose,docker==6.1.3,requests==2.31.0
executable: '{{pip_executable}}'
extra_args: '--no-build-isolation --ignore-installed'
extra_args: '--no-build-isolation'
#when: ansible_python.version.major == 3
- name: 替换 compose/service.py 文件
become: true
......@@ -47,6 +47,15 @@
src: ./docker-service-patch.py
dest: "/usr/local/lib/python{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}/dist-packages/compose/service.py"
backup: yes
- name: 替换 cli/main.py 文件
become: true
lineinfile:
path: "/usr/local/lib/python{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}/dist-packages/compose/cli/main.py"
regexp: '.*pipes.*'
line: '# disabled'
backrefs: true
backup: true
when: ansible_python.version.minor >= 13
- name: docker 创建目录
become: true
file:
......
......@@ -13,3 +13,4 @@
state: latest
update_cache: true
when: ansible_distribution_release != 'sid'
ignore_errors: true
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