From bf9572dfb5311342b1e5b6c7596195a727422c48 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 16 Nov 2022 19:20:53 -0600 Subject: [PATCH 1/2] Add inventory_hostname under remote_addr.vars in chroot connection plugin required by ansible 2.13 --- .../fragments/5570-chroot-plugin-fix-default-inventory_hostname | 2 ++ plugins/connection/chroot.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname diff --git a/changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname b/changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname new file mode 100644 index 00000000000..fc0c074f84b --- /dev/null +++ b/changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname @@ -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)." \ No newline at end of file diff --git a/plugins/connection/chroot.py b/plugins/connection/chroot.py index cbbf9612e90..ef6d5566d3a 100644 --- a/plugins/connection/chroot.py +++ b/plugins/connection/chroot.py @@ -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: From e39a70126cbe063ebdb1bd65b14d6eb0d4e36fe5 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 16 Nov 2022 19:58:29 -0600 Subject: [PATCH 2/2] fix changelog fragment --- ...name => 5570-chroot-plugin-fix-default-inventory_hostname.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelogs/fragments/{5570-chroot-plugin-fix-default-inventory_hostname => 5570-chroot-plugin-fix-default-inventory_hostname.yml} (100%) diff --git a/changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname b/changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname.yml similarity index 100% rename from changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname rename to changelogs/fragments/5570-chroot-plugin-fix-default-inventory_hostname.yml