Commit 20260dd4 authored by nanahira's avatar nanahira

python

parent ca2a3dd5
Pipeline #30738 failed with stage
in 60 minutes and 6 seconds
This diff is collapsed.
...@@ -41,6 +41,12 @@ ...@@ -41,6 +41,12 @@
executable: '{{pip_executable}}' executable: '{{pip_executable}}'
extra_args: '--no-build-isolation --ignore-installed' extra_args: '--no-build-isolation --ignore-installed'
#when: ansible_python.version.major == 3 #when: ansible_python.version.major == 3
- name: 替换 compose/service.py 文件
become: true
copy:
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: docker 创建目录 - name: docker 创建目录
become: true become: true
file: file:
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
when: ansible_user_id == "root" or not manual_fish_mode is defined when: ansible_user_id == "root" or not manual_fish_mode is defined
- name: use mycard omf - name: use mycard omf
set_fact: set_fact:
omf_uri: https://code.mycard.moe/nanahira/oh-my-fish omf_uri: https://code.moenext.com/nanahira/oh-my-fish
omf_install_uri_prefix: https://code.mycard.moe/nanahira/oh-my-fish/- omf_install_uri_prefix: https://code.moenext.com/nanahira/oh-my-fish/-
robbyrussell_path: https://code.mycard.moe/nanahira/theme-robbyrussell robbyrussell_path: https://code.moenext.com/nanahira/theme-robbyrussell
when: china_mirror_omf when: china_mirror_omf
- name: use original omf - name: use original omf
set_fact: set_fact:
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- name: change omf mirror - name: change omf mirror
when: china_mirror_omf when: china_mirror_omf
copy: copy:
content: https://code.mycard.moe/nanahira/omf-packages-main master content: https://code.moenext.com/nanahira/omf-packages-main master
dest: '~/.local/share/omf/repositories' dest: '~/.local/share/omf/repositories'
when: china_mirror_omf and not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 22) when: china_mirror_omf and not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 22)
- name: 终端环境 fish robbyrussell - name: 终端环境 fish robbyrussell
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
- name: nvidia-patch repo - name: nvidia-patch repo
git: git:
dest: /tmp/nvidia-patch dest: /tmp/nvidia-patch
repo: https://code.mycard.moe/nanahira/nvidia-patch repo: https://code.moenext.com/nanahira/nvidia-patch
recursive: false recursive: false
- name: patch - name: patch
include_tasks: nvidia_patch.yml include_tasks: nvidia_patch.yml
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
name: pip name: pip
executable: '{{pip_executable_install}}' executable: '{{pip_executable_install}}'
state: latest state: latest
ignore_errors: true
#when: ansible_python.version.major == 3 #when: ansible_python.version.major == 3
- name: check pip location - name: check pip location
shell: whereis pip | sed -e 's/ /\n/g' | grep bin/pip | tail -n 1 shell: whereis pip | sed -e 's/ /\n/g' | grep bin/pip | tail -n 1
......
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