-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from paradeum-team/jyliu
feat: add node 支持ubuntu
- Loading branch information
Showing
13 changed files
with
137 additions
and
8 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
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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
- name: clean repo cache | ||
command: apt clean && apt update | ||
ignore_errors: yes | ||
tags: aptrepo | ||
|
||
- name: Add kubernetes repo key | ||
apt_key: | ||
url: https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | ||
state: present | ||
|
||
- name: Install kubernetes repo | ||
shell: echo "deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list | ||
|
||
- name: Add docker repo key | ||
apt_key: | ||
url: https://download.docker.com/linux/ubuntu/gpg | ||
keyring: /usr/share/keyrings/docker-archive-keyring.gpg | ||
state: present | ||
|
||
- name: Install docker repo | ||
shell: echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
- name: Install base tools | ||
apt: | ||
name: | ||
- wget | ||
- net-tools | ||
- dnsutils | ||
- bash-completion | ||
- telnet | ||
- curl | ||
- lrzsz | ||
- jq | ||
- linux-tools-common | ||
- strace | ||
- vim | ||
- iotop | ||
- dnsmasq | ||
- iproute2 | ||
- nfs-common | ||
- python3-selinux | ||
- policycoreutils | ||
- apt-transport-https | ||
- ca-certificates | ||
- gnupg | ||
- lsb-release | ||
update_cache: yes | ||
tags: install-base-tools | ||
|
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
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,3 +1,9 @@ | ||
- name: yum update | ||
command: yum update -y | ||
tags: yum-update | ||
when: OS_ID == "centos" | ||
|
||
- name: apt upgrade | ||
apt: | ||
only_upgrade: yes | ||
when: OS_ID == "ubuntu" |
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