Skip to content

sap_vm_provision - Move ansible_ssh_common_args Configuration to Inventory #102

@geetikakay

Description

@geetikakay

This issue is a follow-up to discuss improving flexibility by moving ansible_ssh_common_args configuration to inventory, instead of hardcoding it in platform-specific task files.

Right now, SSH options like ansible_ssh_common_args are embedded directly in the roles. This limits flexibility especially when variables like __sap_vm_provision_kubevirt_vm_register_execution_host_user can differ across environments.

By shifting SSH configuration to inventory (similar to how users manage settings in ~/.ssh/config), we can:

Avoid code duplication across platforms
Make playbooks cleaner 
Let users define SSH behavior in a way that fits their own setup
Support varied customer environments without modifying core roles

This wouldn’t need to be a breaking change, defaults can be preserved for backward compatibility, while allowing overrides via inventory or group_vars.

Discussion Reference:
https://github.com/sap-linuxlab/community.sap_infrastructure/pull/100/files#r2212972226

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions