Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
5efe5f1c
Commit
5efe5f1c
authored
Nov 28, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
ca2a3dd5
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1998 additions
and
12 deletions
+1998
-12
files/docker-service-patch.py
files/docker-service-patch.py
+1979
-0
tasks/apt.yml
tasks/apt.yml
+1
-1
tasks/docker-source.yml
tasks/docker-source.yml
+1
-1
tasks/docker.yml
tasks/docker.yml
+6
-0
tasks/fish.yml
tasks/fish.yml
+4
-4
tasks/nvidia.yml
tasks/nvidia.yml
+1
-1
tasks/pip.yml
tasks/pip.yml
+1
-0
tasks/utility.yml
tasks/utility.yml
+5
-5
No files found.
files/docker-service-patch.py
0 → 100644
View file @
5efe5f1c
This diff is collapsed.
Click to expand it.
tasks/apt.yml
View file @
5efe5f1c
...
...
@@ -38,7 +38,7 @@
-
name
:
apt
become
:
true
apt
:
#
update_cache: true
update_cache
:
true
name
:
'
{{
apt_packages
}}'
-
name
:
apt autoremove
become
:
true
...
...
tasks/docker-source.yml
View file @
5efe5f1c
...
...
@@ -4,7 +4,7 @@
when
:
china_mirror
-
name
:
China mirror for Docker
set_fact
:
mirror_docker
:
https://mirrors.
tuna.tsinghua.edu.cn
/docker-ce
mirror_docker
:
https://mirrors.
aliyun.com
/docker-ce
when
:
china_mirror_docker
-
name
:
target distribution for non-sid
set_fact
:
...
...
tasks/docker.yml
View file @
5efe5f1c
...
...
@@ -41,6 +41,12 @@
executable
:
'
{{pip_executable}}'
extra_args
:
'
--no-build-isolation
--ignore-installed'
#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 创建目录
become
:
true
file
:
...
...
tasks/fish.yml
View file @
5efe5f1c
...
...
@@ -6,9 +6,9 @@
when
:
ansible_user_id == "root" or not manual_fish_mode is defined
-
name
:
use mycard omf
set_fact
:
omf_uri
:
https://code.m
ycard.moe
/nanahira/oh-my-fish
omf_install_uri_prefix
:
https://code.m
ycard.moe
/nanahira/oh-my-fish/-
robbyrussell_path
:
https://code.m
ycard.moe
/nanahira/theme-robbyrussell
omf_uri
:
https://code.m
oenext.com
/nanahira/oh-my-fish
omf_install_uri_prefix
:
https://code.m
oenext.com
/nanahira/oh-my-fish/-
robbyrussell_path
:
https://code.m
oenext.com
/nanahira/theme-robbyrussell
when
:
china_mirror_omf
-
name
:
use original omf
set_fact
:
...
...
@@ -29,7 +29,7 @@
-
name
:
change omf mirror
when
:
china_mirror_omf
copy
:
content
:
https://code.m
ycard.moe
/nanahira/omf-packages-main master
content
:
https://code.m
oenext.com
/nanahira/omf-packages-main master
dest
:
'
~/.local/share/omf/repositories'
when
:
china_mirror_omf and not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 22)
-
name
:
终端环境 fish robbyrussell
...
...
tasks/nvidia.yml
View file @
5efe5f1c
...
...
@@ -11,7 +11,7 @@
-
name
:
nvidia-patch repo
git
:
dest
:
/tmp/nvidia-patch
repo
:
https://code.m
ycard.moe
/nanahira/nvidia-patch
repo
:
https://code.m
oenext.com
/nanahira/nvidia-patch
recursive
:
false
-
name
:
patch
include_tasks
:
nvidia_patch.yml
...
...
tasks/pip.yml
View file @
5efe5f1c
...
...
@@ -87,6 +87,7 @@
name
:
pip
executable
:
'
{{pip_executable_install}}'
state
:
latest
ignore_errors
:
true
#when: ansible_python.version.major == 3
-
name
:
check pip location
shell
:
whereis pip | sed -e 's/ /\n/g' | grep bin/pip | tail -n
1
...
...
tasks/utility.yml
View file @
5efe5f1c
...
...
@@ -67,11 +67,11 @@
when
:
not testing
-
name
:
set facts for China mirror
set_fact
:
mirror_debian
:
http://mirrors.
tuna.tsinghua.edu.cn
mirror_debian_security
:
http://mirrors.
tuna.tsinghua.edu.cn
mirror_ubuntu
:
http://mirrors.
tuna.tsinghua.edu.cn
mirror_ubuntu_security
:
http://mirrors.
tuna.tsinghua.edu.cn
mirror_ubuntu_ports
:
http://mirrors.
tuna.tsinghua.edu.cn
mirror_debian
:
http://mirrors.
aliyun.com
mirror_debian_security
:
http://mirrors.
aliyun.com
mirror_ubuntu
:
http://mirrors.
aliyun.com
mirror_ubuntu_security
:
http://mirrors.
aliyun.com
mirror_ubuntu_ports
:
http://mirrors.
aliyun.com
when
:
china_mirror
-
name
:
keep old distribution
set_fact
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment