-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chroot plugin fix inventory_hostname var for remote_addr #5570
Conversation
…ugin required by ansible 2.13
The test
The test
The test
The test
The test
The test
|
Docs Build 📝Thank you for contribution!✨ The docsite for this PR is available for download as an artifact from this run: File changes:
Click to see the diff comparison.NOTE: only file modifications are shown here. New and deleted files are excluded. diff --git a/home/runner/work/community.general/community.general/docsbuild/base/collections/community/general/chroot_connection.html b/home/runner/work/community.general/community.general/docsbuild/head/collections/community/general/chroot_connection.html
index b3e63c8..1f02787 100644
--- a/home/runner/work/community.general/community.general/docsbuild/base/collections/community/general/chroot_connection.html
+++ b/home/runner/work/community.general/community.general/docsbuild/head/collections/community/general/chroot_connection.html
@@ -206,6 +206,7 @@
<p class="ansible-option-line"><span class="ansible-option-default-bold">Default:</span> <code class="ansible-option-default docutils literal notranslate"><span class="pre">"inventory_hostname"</span></code></p>
<p class="ansible-option-line"><span class="ansible-option-configuration">Configuration:</span></p>
<ul class="simple">
+<li><p>Variable: inventory_hostname</p></li>
<li><p>Variable: ansible_host</p></li>
</ul>
</div></td>
|
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5572 🤖 @patchback |
* Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13 * fix changelog fragment (cherry picked from commit 5e5af45)
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #5573 🤖 @patchback |
@evanjarrett thanks for your contribution! |
* Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13 * fix changelog fragment (cherry picked from commit 5e5af45)
…lections#5570) * Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13 * fix changelog fragment
…lections#5570) * Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13 * fix changelog fragment
SUMMARY
Add inventory_hostname to the vars under remote_addr to fix compatibility with ansible-core 2.13
A similar change was made to the lxd plugin here #4912
ISSUE TYPE
COMPONENT NAME
chroot connection plugin
ADDITIONAL INFORMATION
remote_addr value was being set to literal string 'inventory_hostname' instead of value of inventory_hostname variable.
Adding inventory_hostname to the vars: directive prevents the warnings as specified in https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/play_context.py#L320