optimize grep

This commit is contained in:
lhahn committed 2024-07-28 23:25:18 +02:00
1 parent 45dc5a151f
commit efe72d2582
1 file changed
+1 -1
+1 -1
View File
@@ -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