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
37da548a
Commit
37da548a
authored
Dec 15, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setcap
parent
83560db3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
14 deletions
+43
-14
init.yml
init.yml
+39
-14
install_srvpro.yml
install_srvpro.yml
+4
-0
No files found.
init.yml
View file @
37da548a
...
...
@@ -34,6 +34,30 @@
name
:
vm.swappiness
value
:
1
sysctl_set
:
true
-
name
:
net.ipv4.ip_forward
become
:
true
sysctl
:
name
:
net.ipv4.ip_forward
value
:
1
sysctl_set
:
true
-
name
:
fs.inotify.max_user_watches
become
:
true
sysctl
:
name
:
fs.inotify.max_user_watches
value
:
524288
sysctl_set
:
true
-
name
:
net.ipv4.conf.all.rp_filter
become
:
true
sysctl
:
name
:
net.ipv4.conf.all.rp_filter
value
:
0
sysctl_set
:
true
-
name
:
net.ipv4.conf.default.rp_filter
become
:
true
sysctl
:
name
:
net.ipv4.conf.default.rp_filter
value
:
0
sysctl_set
:
true
-
name
:
TCP BBR
become
:
true
sysctl
:
...
...
@@ -61,11 +85,26 @@
update_cache
:
true
upgrade
:
dist
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
yum update
become
:
true
yum
:
name
:
'
*'
update_cache
:
true
state
:
latest
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
:
fixup iptables with qemu
become
:
true
iptables
:
chain
:
FORWARD
flush
:
true
when
:
'
hypervisor
is
defined'
-
name
:
apt
become
:
true
apt
:
...
...
@@ -92,13 +131,6 @@
apt
:
autoremove
:
true
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
yum update
become
:
true
yum
:
name
:
'
*'
update_cache
:
true
state
:
latest
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
7"
-
name
:
epel
7
become
:
true
yum
:
...
...
@@ -116,13 +148,6 @@
# 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
:
...
...
install_srvpro.yml
View file @
37da548a
...
...
@@ -98,6 +98,10 @@
-
name
:
nodejs version
become
:
true
shell
:
n
12
-
name
:
node setcap
become
:
true
with_items
:
[
'
/usr/bin/node'
,
'
/usr/local/bin/node'
]
shell
:
'
setcap
cap_net_bind_service=+eip
{{item}}'
-
name
:
npm
become
:
true
with_items
:
...
...
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