don't become while writing data to controller disk

This commit is contained in:
citty 2021-10-15 22:55:22 -04:00
parent 0a321f2acb
commit 5e2ad66dfb

View File

@ -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) }}"