---
- name: Debug Nomad cgroup subdirectory
  hosts: germany
  become: yes
  tasks:
    - name: List contents of /sys/fs/cgroup/cpuset/nomad/
      command: ls -la /sys/fs/cgroup/cpuset/nomad/
      register: ls_nomad_cpuset
      changed_when: false
      failed_when: false

    - name: Display contents of /sys/fs/cgroup/cpuset/nomad/
      debug:
        var: ls_nomad_cpuset.stdout_lines