don't become while writing data to controller disk
This commit is contained in:
parent
0a321f2acb
commit
5e2ad66dfb
@ -31,6 +31,7 @@
|
|||||||
content: "{{lsblk_output.stdout}}"
|
content: "{{lsblk_output.stdout}}"
|
||||||
dest: "{{ inventory_hostname }}/lsblk.out"
|
dest: "{{ inventory_hostname }}/lsblk.out"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: no
|
||||||
|
|
||||||
- name: Collect netstat
|
- name: Collect netstat
|
||||||
block:
|
block:
|
||||||
@ -43,7 +44,7 @@
|
|||||||
content: "{{netstat_output.stdout}}"
|
content: "{{netstat_output.stdout}}"
|
||||||
dest: "{{ inventory_hostname }}/netstat.out"
|
dest: "{{ inventory_hostname }}/netstat.out"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: no
|
||||||
- name: Collect process data
|
- name: Collect process data
|
||||||
block:
|
block:
|
||||||
- name: Run command
|
- name: Run command
|
||||||
@ -55,7 +56,7 @@
|
|||||||
content: "{{ps_output.stdout}}"
|
content: "{{ps_output.stdout}}"
|
||||||
dest: "{{ inventory_hostname }}/ps.out"
|
dest: "{{ inventory_hostname }}/ps.out"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: no
|
||||||
- name: Get users
|
- name: Get users
|
||||||
get_users:
|
get_users:
|
||||||
#min_uid: "{{ (ansible_os_family == 'RedHat') | ternary(500,1000) }}"
|
#min_uid: "{{ (ansible_os_family == 'RedHat') | ternary(500,1000) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user