Skip to content

Commit

Permalink
List users in /home
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 28, 2024
1 parent 1e50645 commit 1534fec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/grader/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@
loop: "{{ students | from_json }}"

- name: List all non-grader_user non-system users to course
ansible.builtin.shell: set -o pipefail && ls -1 /| grep -v lost+found | grep -v '{{ grader_user }}'
ansible.builtin.shell: set -o pipefail && ls -1 /home | grep -v lost+found | grep -v '{{ grader_user }}'
register: non_grader_users
args:
chdir: /home
executable: /bin/bash
- name: Register non_grader_users as nbgrader student
when: non_grader_users.stdout_lines is defined
Expand Down

0 comments on commit 1534fec

Please sign in to comment.