Skip to content

Replace connection variable with ansible_connection#345

Open
anxstj wants to merge 1 commit intoansible-community:mainfrom
anxstj:replace_connection
Open

Replace connection variable with ansible_connection#345
anxstj wants to merge 1 commit intoansible-community:mainfrom
anxstj:replace_connection

Conversation

@anxstj
Copy link

@anxstj anxstj commented Oct 31, 2025

The connection variable is deprecated, instead ansible_connection should be used.

see: intro_inventory

There's usually a warning about it:

[WARNING]: Found variable using reserved name 'connection'.
Origin: /root/.cache/molecule/test.libvirt/default/inventory/ansible_inventory.yml:23:7
21         -o StrictHostKeyChecking=no
22       ansible_user: vagrant
23       connection: ssh

@github-actions
Copy link

Label error. Requires exactly 1 of: breaking, build, chore, ci, docs, feat, fix, perf, refactor, style, test. Found: . Follow https://www.conventionalcommits.org to get auto-labeling to work correctly.

@anxstj anxstj force-pushed the replace_connection branch from 4b37e67 to 0156ffa Compare October 31, 2025 13:57
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request Jan 12, 2026
    git clean -xdf
    tar zcvf ../python-molecule-plugins_25.8.12.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_25.8.12-1.spec
    cp ../python*-molecule-plugins*25.8.12*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-25.8.12
    rm -rf ../python*-molecule-plugins*25.8.12*.*

See ansible-community#155
See ansible-community#237
See ansible-community#345

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
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