- name: Read Nomad config on germany hosts: germany gather_facts: false tasks: - name: Read nomad.hcl command: cat /etc/nomad.d/nomad.hcl register: nomad_config ignore_errors: true - name: Display config debug: msg: "{{ nomad_config.stdout }}"