Skip to content

fix(ansible-api): report hostnames in ping output - #1318

Merged
simonjcarr merged 1 commit into
mainfrom
fix/issue-1316-ansible-hostnames
May 12, 2026
Merged

simonjcarr merged 1 commit into
mainfrom
fix/issue-1316-ansible-hostnames

Conversation

@simonjcarr

Copy link
Copy Markdown
Collaborator

Summary

  • use the host hostname as the Ansible inventory alias so Ansible stdout reports hostnames instead of CT-Ops host ids
  • keep CT-Ops host ids in the API response while parsing Ansible JSON callback results by hostname
  • add Ansible API contract coverage for hostname-based inventory aliases

Fixes #1316

Tests

  • python3 -m unittest discover tests (from apps/ansible-api)

Notes

  • Tried running the web unit test command, but pnpm is not available on this shell's PATH.

@simonjcarr
simonjcarr merged commit 1af0cb6 into main May 12, 2026
19 checks passed
@simonjcarr
simonjcarr deleted the fix/issue-1316-ansible-hostnames branch May 12, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ansible reports show hostid, not hostname

1 participant