optimize grep

This commit is contained in:
Lars Hahn 2024-07-28 23:25:18 +02:00
parent 45dc5a151f
commit efe72d2582

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