mgmt/configuration/playbooks/manual-run-nomad-germany.yml

17 lines
495 B
YAML

- name: Manually run Nomad agent to capture output
hosts: germany
gather_facts: false
tasks:
- name: Run nomad agent directly
command: /snap/bin/nomad agent -config=/etc/nomad.d/nomad.hcl
register: nomad_agent_output
ignore_errors: true
- name: Display agent output
debug:
msg: |
--- Nomad Agent STDOUT ---
{{ nomad_agent_output.stdout }}
--- Nomad Agent STDERR ---
{{ nomad_agent_output.stderr }}