Skip to content

Prevent failures when user do not use vars dirs#337

Merged
neillturner merged 1 commit into
neillturner:masterfrom
jjacque:fix/missing_vars_files
Mar 3, 2026
Merged

Prevent failures when user do not use vars dirs#337
neillturner merged 1 commit into
neillturner:masterfrom
jjacque:fix/missing_vars_files

Conversation

@jjacque
Copy link
Copy Markdown
Contributor

@jjacque jjacque commented Jan 9, 2026

Problem

The provisioner was attempting to copy group_vars and host_vars directories to the test VM unconditionally, causing failures when these directories don't exist in the Ansible repository.

Solution

Added existence checks before copying these directories in the prepare_command method

Impact

Users can now run kitchen-ansible without requiring group_vars or host_vars directories
Prevents unnecessary copy failures during VM preparation phase

Signed-off-by: Jeremy JACQUE <jeremy.jacque@algolia.com>
@neillturner neillturner merged commit 55c41f4 into neillturner:master Mar 3, 2026
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.

2 participants