|
|
|
@ -31,7 +31,8 @@
|
|
|
|
|
content: "{{lsblk_output.stdout}}"
|
|
|
|
|
dest: "{{ inventory_hostname }}/lsblk.out"
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
become: no
|
|
|
|
|
|
|
|
|
|
- name: Collect netstat
|
|
|
|
|
block:
|
|
|
|
|
- name: Run command
|
|
|
|
@ -43,7 +44,7 @@
|
|
|
|
|
content: "{{netstat_output.stdout}}"
|
|
|
|
|
dest: "{{ inventory_hostname }}/netstat.out"
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
become: no
|
|
|
|
|
- name: Collect process data
|
|
|
|
|
block:
|
|
|
|
|
- name: Run command
|
|
|
|
@ -55,7 +56,7 @@
|
|
|
|
|
content: "{{ps_output.stdout}}"
|
|
|
|
|
dest: "{{ inventory_hostname }}/ps.out"
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
become: no
|
|
|
|
|
- name: Get users
|
|
|
|
|
get_users:
|
|
|
|
|
#min_uid: "{{ (ansible_os_family == 'RedHat') | ternary(500,1000) }}"
|
|
|
|
|