optimize grep
This commit is contained in:
parent
45dc5a151f
commit
efe72d2582
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user