Commit deccec04 by ansible

no message

1 parent 8d5caa37
Showing with 3 additions and 0 deletions
# 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
...@@ -17,6 +18,8 @@ ...@@ -17,6 +18,8 @@
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:
path: "{{ item.path }}" path: "{{ item.path }}"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!