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
99a9abd4
Commit
99a9abd4
authored
May 28, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fedora
parent
c6fe3193
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
10 deletions
+29
-10
tasks/dnf.yml
tasks/dnf.yml
+7
-1
tasks/docker.yml
tasks/docker.yml
+18
-7
tasks/main.yml
tasks/main.yml
+1
-1
tasks/redhat_configures.yml
tasks/redhat_configures.yml
+1
-0
tasks/yum.yml
tasks/yum.yml
+2
-1
No files found.
tasks/dnf.yml
View file @
99a9abd4
...
@@ -6,7 +6,13 @@
...
@@ -6,7 +6,13 @@
-
name
:
dnf
-
name
:
dnf
become
:
true
become
:
true
dnf
:
dnf
:
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python3-pip,tcpdump,rsync,htop,mtr,net-tools,ctags,astyle,xclip,traceroute,tar,unzip,nmap,python3-libselinux,mosh,subversion,haveged
# nfs-common,fish
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python3-pip,tcpdump,rsync,htop,mtr,net-tools,ctags,astyle,xclip,traceroute,tar,unzip,nmap,python3-libselinux,mosh,subversion,haveged,nfs-utils
# nfs-common,fish
update_cache
:
yes
-
name
:
Fish for Fedora
become
:
true
dnf
:
name
:
fish
when
:
ansible_distribution == 'Fedora'
-
name
:
open vm tools
-
name
:
open vm tools
become
:
true
become
:
true
dnf
:
dnf
:
...
...
tasks/docker.yml
View file @
99a9abd4
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
apt
:
apt
:
name
:
docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip
name
:
docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip
update_cache
:
yes
update_cache
:
yes
state
:
latest
when
:
ansible_os_family == 'Debian' and ansible_distribution_release|lower != 'focal'
when
:
ansible_os_family == 'Debian' and ansible_distribution_release|lower != 'focal'
notify
:
restart_docker
notify
:
restart_docker
-
name
:
安装 Docker (focal)
-
name
:
安装 Docker (focal)
...
@@ -53,7 +52,6 @@
...
@@ -53,7 +52,6 @@
apt
:
apt
:
name
:
docker.io,python3-pip
name
:
docker.io,python3-pip
update_cache
:
yes
update_cache
:
yes
state
:
latest
when
:
ansible_os_family == 'Debian' and ansible_distribution_release|lower == 'focal'
when
:
ansible_os_family == 'Debian' and ansible_distribution_release|lower == 'focal'
notify
:
restart_docker
notify
:
restart_docker
-
name
:
clean yum Docker
-
name
:
clean yum Docker
...
@@ -71,7 +69,7 @@
...
@@ -71,7 +69,7 @@
baseurl
:
'
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}/{{ansible_distribution_major_version}}/$basearch/stable'
baseurl
:
'
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}/{{ansible_distribution_major_version}}/$basearch/stable'
ip_resolve
:
4
ip_resolve
:
4
gpgkey
:
'
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}/gpg'
gpgkey
:
'
{{mirror_docker}}/linux/{{
ansible_distribution|lower
}}/gpg'
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
!=
8
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
<
8
-
name
:
docker yum 源 (CentOS 8)
-
name
:
docker yum 源 (CentOS 8)
become
:
true
become
:
true
yum_repository
:
yum_repository
:
...
@@ -80,19 +78,32 @@
...
@@ -80,19 +78,32 @@
baseurl
:
'
{{mirror_docker}}/linux/centos/7/$basearch/stable'
baseurl
:
'
{{mirror_docker}}/linux/centos/7/$basearch/stable'
ip_resolve
:
4
ip_resolve
:
4
gpgkey
:
'
{{mirror_docker}}/linux/7/gpg'
gpgkey
:
'
{{mirror_docker}}/linux/7/gpg'
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
>
=
8
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
=
=
8
-
name
:
containerd.io
-
name
:
containerd.io
become
:
true
become
:
true
dnf
:
dnf
:
name
:
'
{{mirror_docker}}/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm'
name
:
'
{{mirror_docker}}/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm'
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
>
=
8
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version|int
=
=
8
-
name
:
安装 Docker (yum)
-
name
:
安装 Docker (yum)
become
:
true
become
:
true
yum
:
yum
:
name
:
python3-pip,docker-ce,docker-ce-cli,containerd.io
name
:
python3-pip,docker-ce,docker-ce-cli,containerd.io
update_cache
:
yes
update_cache
:
yes
state
:
latest
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <
8
when
:
ansible_os_family == 'RedHat'
notify
:
restart_docker
-
name
:
安装 Docker (CentOS 8)
become
:
true
dnf
:
name
:
python3-pip,docker-ce,docker-ce-cli,containerd.io
update_cache
:
yes
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int ==
8
notify
:
restart_docker
-
name
:
安装 Docker (Fedora)
become
:
true
dnf
:
name
:
python3-pip,moby-engine
update_cache
:
yes
when
:
ansible_distribution == 'Fedora'
notify
:
restart_docker
notify
:
restart_docker
-
name
:
docker user group
-
name
:
docker user group
become
:
true
become
:
true
...
...
tasks/main.yml
View file @
99a9abd4
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
when
:
"
install_docker"
when
:
"
install_docker"
-
name
:
fish
-
name
:
fish
include_tasks
:
fish.yml
include_tasks
:
fish.yml
when
:
"
ansible_os_family
==
'Debian'"
# RedHat has too many problems on fish, so aborted
when
:
ansible_os_family == 'Debian' or ansible_distribution == 'Fedora'
# RedHat has too many problems on fish, so aborted
-
name
:
customize
-
name
:
customize
include_tasks
:
'
{{item}}.yml'
include_tasks
:
'
{{item}}.yml'
with_items
:
with_items
:
...
...
tasks/redhat_configures.yml
View file @
99a9abd4
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
selinux
:
selinux
:
state
:
disabled
state
:
disabled
-
name
:
disable selinux
-
name
:
disable selinux
become
:
true
lineinfile
:
lineinfile
:
path
:
/etc/selinux/config
path
:
/etc/selinux/config
regexp
:
'
^SELINUX='
regexp
:
'
^SELINUX='
...
...
tasks/yum.yml
View file @
99a9abd4
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
-
name
:
yum
-
name
:
yum
become
:
true
become
:
true
yum
:
yum
:
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python-pip,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,traceroute,tar,unzip,iperf,iperf3,nmap,libselinux-python,mosh,subversion,fish,haveged,mtr,rsync
# astyle # nfs-common
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python-pip,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,traceroute,tar,unzip,iperf,iperf3,nmap,libselinux-python,mosh,subversion,fish,haveged,mtr,rsync,nfs-utils
# astyle
update_cache
:
yes
-
name
:
open vm tools
-
name
:
open vm tools
become
:
true
become
:
true
yum
:
yum
:
...
...
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