Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
dma-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit deccec04
authored
Apr 27, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
8d5caa37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
roles/install/tasks/main.yml
roles/install/tasks/main.yml
View file @
deccec0
# Module Delete Process That Open Port Except SSH
-
name
:
Get running processes
-
name
:
Get running processes
shell
:
lsof -n -i4TCP |grep -v 'ssh' | grep LISTEN | awk '{ print $2 }'
shell
:
lsof -n -i4TCP |grep -v 'ssh' | grep LISTEN | awk '{ print $2 }'
register
:
running_processes
register
:
running_processes
...
@@ -16,6 +17,8 @@
...
@@ -16,6 +17,8 @@
-
name
:
Force kill stuck processes
-
name
:
Force kill stuck processes
shell
:
"
kill
-9
{{
item
}}"
shell
:
"
kill
-9
{{
item
}}"
with_items
:
"
{{
killed_processes.results
|
select('failed')
|
map(attribute='item')
|
list
}}"
with_items
:
"
{{
killed_processes.results
|
select('failed')
|
map(attribute='item')
|
list
}}"
# END
-
name
:
Check & Recreate Stack Folder
-
name
:
Check & Recreate Stack Folder
file
:
file
:
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment