-
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
lxc: fix remote_addr default to inventory_hostname #7104
lxc: fix remote_addr default to inventory_hostname #7104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #7108 🤖 @patchback |
* lxc: fix remote_addr default to inventory_hostname * Update changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit eafdf87)
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7109 🤖 @patchback |
@corubba thanks! |
* lxc: fix remote_addr default to inventory_hostname * Update changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit eafdf87)
@felixfontein and thank you for that lighting-fast merge! |
…o inventory_hostname (#7108) lxc: fix remote_addr default to inventory_hostname (#7104) * lxc: fix remote_addr default to inventory_hostname * Update changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit eafdf87) Co-authored-by: Corubba <[email protected]>
…o inventory_hostname (#7109) lxc: fix remote_addr default to inventory_hostname (#7104) * lxc: fix remote_addr default to inventory_hostname * Update changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit eafdf87) Co-authored-by: Corubba <[email protected]>
SUMMARY
Ansible currently prints a warning when not explicitly defining one of the lxc
remote_addr
parameter variables and the fallback toinventory_hostname
is used.This PR implements the same solution as ansible/ansible#77844, defining
inventory_hostname
as the lowest-priority variable for theremote_addr
parameter.ISSUE TYPE
COMPONENT NAME
lxc
ADDITIONAL INFORMATION
Encountered, fixed and tested with: