From 9a97bc7c1146f612e02268a8b6df92490ad10ec2 Mon Sep 17 00:00:00 2001 From: Giacomo Olgeni Date: Fri, 3 Mar 2023 22:56:24 +0100 Subject: [PATCH] Add 'inventory_hostname' to the jail plugin documentation (#6118) This fixes the following warning on FreeBSD: [WARNING]: The "jail" connection plugin has an improperly configured remote target value, forcing "inventory_hostname" templated value instead of the string --- .../6118-jail-plugin-fix-default-inventory_hostname.yml | 2 ++ plugins/connection/jail.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/6118-jail-plugin-fix-default-inventory_hostname.yml diff --git a/changelogs/fragments/6118-jail-plugin-fix-default-inventory_hostname.yml b/changelogs/fragments/6118-jail-plugin-fix-default-inventory_hostname.yml new file mode 100644 index 0000000000..ac2cb5cf43 --- /dev/null +++ b/changelogs/fragments/6118-jail-plugin-fix-default-inventory_hostname.yml @@ -0,0 +1,2 @@ +bugfixes: + - "jail 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/6118)." diff --git a/plugins/connection/jail.py b/plugins/connection/jail.py index d813780136..3a3edd4b18 100644 --- a/plugins/connection/jail.py +++ b/plugins/connection/jail.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' - Path to the jail default: inventory_hostname vars: + - name: inventory_hostname - name: ansible_host - name: ansible_jail_host remote_user: