-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
34 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,10 @@ | ||
default: install clean | ||
all: apt ssh install clean | ||
|
||
apt: | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv 04EE7237B7D453EC | ||
echo "deb https://mirrors.cloud.tencent.com/debian bookworm main" > /etc/apt/sources.list | ||
apt update | ||
apt install -y ansible openssh-client openssh-server sudo | ||
echo > /etc/apt/sources.list | ||
|
||
ssh: | ||
rm -f ~/.ssh/id_rsa | ||
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa | ||
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys | ||
ssh -o "StrictHostKeyChecking=no" [email protected] echo ok | ||
clean: | ||
apt autoremove --purge -y | ||
apt clean -y | ||
|
||
install: | ||
ansible-playbook -b -e user=wizawu -v install.yml | ||
|
||
clean: | ||
apt autoremove --purge -y | ||
apt clean -y | ||
|
||
swap: | ||
echo 60 >> /proc/sys/vm/swappiness | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/debian bookworm stable | ||
deb [arch=amd64] https://mirrors.cloud.tencent.com/debian bookworm main contrib non-free non-free-firmware | ||
deb [arch=amd64] https://mirrors.cloud.tencent.com/ubuntu jammy main universe | ||
deb [arch=amd64] https://mirrors.cloud.tencent.com/ubuntu mantic main universe | ||
deb https://community-packages.deepin.com/deepin apricot main contrib non-free | ||
deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu noble stable | ||
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,3 @@ | |
- n@latest | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
||
- name: switch node version | ||
shell: "n 18" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters