Skip to content

Commit

Permalink
chroot plugin fix inventory_hostname var for remote_addr (#5570) (#5572)
Browse files Browse the repository at this point in the history
* Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13

* fix changelog fragment

(cherry picked from commit 5e5af45)

Co-authored-by: Evan Jarrett <ejfirestar00@gmail.com>
  • Loading branch information
patchback[bot] and evanjarrett authored Nov 17, 2022
1 parent 17cc574 commit 6ccffc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "chroot connection plugin - add ``inventory_hostname`` to vars under ``remote_addr``. This is needed for compatibility with ansible-core 2.13 (https://github.com/ansible-collections/community.general/pull/5570)."
1 change: 1 addition & 0 deletions plugins/connection/chroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- The path of the chroot you want to access.
default: inventory_hostname
vars:
- name: inventory_hostname
- name: ansible_host
executable:
description:
Expand Down

0 comments on commit 6ccffc3

Please sign in to comment.