optimize grep
This commit is contained in:
1 parent
45dc5a151f
commit
efe72d2582
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user