Skip to content

fix(ansible): install openssh-client and fix ansible-lint config loading - #59

Merged
matthew-on-git merged 1 commit into
mainfrom
fix/ansible-openssh-client-and-config-detection
Jul 30, 2026
Merged

fix(ansible): install openssh-client and fix ansible-lint config loading#59
matthew-on-git merged 1 commit into
mainfrom
fix/ansible-openssh-client-and-config-detection

Conversation

@matthew-on-git

Copy link
Copy Markdown
Contributor

Changes

Issue #57 — Missing SSH client prevents Ansible from reaching remote hosts

scripts/install-ansible.sh: Adds idempotent installation of openssh-client via apt-get. The image ships ansible-core but had no SSH client, so ansible-playbook could not connect to any remote host via the default SSH transport. Users had to install it themselves in before_script.

Issue #58ansible.cfg in project_dir never loaded by ansible-lint

Makefile (_lint target): Replaces the ANSIBLE_ROLES_PATH workaround (which only handled roles_path) with run_per_project ansible "ansible-lint". This uses the existing project discovery system to find directories containing ansible.cfg and runs ansible-lint from each detected root, so Ansible's cwd-based config resolution loads ansible.cfg naturally — including roles_path, inventory, and all other settings. Falls back to the workspace root if no ansible.cfg is found in subdirectories.

README.md: Updated the Included Tools table to list openssh-client under Ansible.

Verification

  • make check passes (lint, format, scan, docs)
  • Container build succeeded with openssh-client installed during the Ansible stage

- Install openssh-client in the container (required by ansible-core's
  default SSH transport) so ansible-playbook can reach remote hosts
  without manual before_script workarounds (closes #57)
- Replace ANSIBLE_ROLES_PATH workaround with run_per_project ansible
  so ansible-lint runs from each detected project root, letting
  Ansible load ansible.cfg naturally (closes #58)
- Update README included tools table
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.

1 participant