Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
playbooks
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
nanahira
playbooks
Commits
1d4678ea
Commit
1d4678ea
authored
Nov 29, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6f2c4cb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
12 deletions
+46
-12
init.yml
init.yml
+46
-12
No files found.
init.yml
View file @
1d4678ea
...
...
@@ -6,7 +6,7 @@
authorized_key
:
user
:
"
{{
ansible_user_id
}}"
key
:
"
{{
lookup('file',
'~/.ssh/id_rsa.pub')
}}"
# when: "ansible_distribution != 'CentOS' or ansible_distribution_major_version != 8"
# when: "ansible_distribution != 'CentOS' or ansible_distribution_major_version
|int
!= 8"
-
name
:
sudoers
become
:
true
lineinfile
:
...
...
@@ -25,14 +25,14 @@
name
:
net.core.default_qdisc
value
:
fq
sysctl_set
:
yes
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version
==
8
"
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version
|int
>
7
"
-
name
:
TCP BBR
become
:
true
sysctl
:
name
:
net.ipv4.tcp_congestion_control
value
:
bbr
sysctl_set
:
yes
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version
==
8
"
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version
|int
>
7
"
-
name
:
limit
become
:
true
pam_limits
:
...
...
@@ -53,39 +53,73 @@
state
:
latest
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,build-essential,p7zip-full,xclip,astyle,python-setuptools,python-dev,tcpdump,rsync,htop,locales,mtr,dnsutils,net-tools,traceroute
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
Ubuntu
& Debian 9
packages
-
name
:
Ubuntu packages
become
:
true
apt
:
update_cache
:
true
state
:
latest
name
:
ctags
when
:
"
ansible_distribution
==
'Ubuntu'
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version
==
9)
"
-
name
:
Debian
10
packages
when
:
"
ansible_distribution
==
'Ubuntu'"
-
name
:
Debian packages
become
:
true
apt
:
update_cache
:
true
state
:
latest
name
:
universal-ctags
when
:
"
ansible_distribution
==
'Debian'
and
ansible_distribution_major_version
==
10"
when
:
"
ansible_distribution
==
'Debian'"
-
name
:
apt autoremove
become
:
true
apt
:
autoremove
:
true
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
yum update
become
:
true
yum
:
name
:
'
*'
update_cache
:
true
state
:
latest
when
:
"
ansible_distribution
==
'CentOS'"
-
name
:
epel
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
7
"
-
name
:
epel
7
become
:
true
yum
:
state
:
latest
name
:
epel-release
when
:
"
ansible_distribution
==
'CentOS'"
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
7
"
-
name
:
yum
become
:
true
yum
:
state
:
latest
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,python-setuptools,python-devel,traceroute
when
:
"
ansible_distribution
==
'CentOS'"
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,tcpdump,rsync,htop,mtr,net-tools,ctags,astyle,traceroute
# astyle
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
7"
#- name: yum autoremove
# become: true
# yum:
# autoremove: true
# when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
-
name
:
dnf update
become
:
true
dnf
:
name
:
'
*'
#update_cache: true
state
:
latest
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
epel
8
become
:
true
dnf
:
state
:
latest
name
:
epel-release
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
dnf
become
:
true
dnf
:
state
:
latest
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,python-setuptools,python-devel,traceroute
# xclip
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
dnf autoremove
become
:
true
dnf
:
autoremove
:
true
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
vimrc
copy
:
src
:
~/.vimrc
...
...
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