From 5e2ad66dfb8603572a785cc86c3cd1f2eb2ecbea Mon Sep 17 00:00:00 2001 From: citty Date: Fri, 15 Oct 2021 22:55:22 -0400 Subject: [PATCH] don't become while writing data to controller disk --- roles/immortal/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/immortal/tasks/main.yml b/roles/immortal/tasks/main.yml index 2b88e58..b05229b 100644 --- a/roles/immortal/tasks/main.yml +++ b/roles/immortal/tasks/main.yml @@ -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) }}"