diff --git a/tasks/users.yml b/tasks/users.yml index 85c776d..667aec4 100755 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -1,6 +1,6 @@ --- - name: list active users - shell: cat /etc/passwd | grep -v "nologin" | cut -f 1 -d ":" + shell: grep -v "nologin" /etc/passwd | cut -f 1 -d ":" changed_when: false register: active_users