From d68f6fcfffb44e36a9c30ec8d32dabe59e14dc8b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 22:15:26 +0200 Subject: [PATCH] [PR #7104/eafdf87b backport][stable-7] lxc: fix remote_addr default to 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 (cherry picked from commit eafdf87b1bdeb14133194e2ad41df5e46350dd2b) Co-authored-by: Corubba <97832352+corubba@users.noreply.github.com> --- changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml | 2 ++ plugins/connection/lxc.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml diff --git a/changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml b/changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml new file mode 100644 index 0000000000..71092b6bb3 --- /dev/null +++ b/changelogs/fragments/7104_fix_lxc_remoteaddr_default.yml @@ -0,0 +1,2 @@ +bugfixes: + - "lxc connection plugin - now handles ``remote_addr`` defaulting to ``inventory_hostname`` correctly (https://github.com/ansible-collections/community.general/pull/7104)." diff --git a/plugins/connection/lxc.py b/plugins/connection/lxc.py index adf3eec1c1..7ad5807244 100644 --- a/plugins/connection/lxc.py +++ b/plugins/connection/lxc.py @@ -19,6 +19,7 @@ DOCUMENTATION = ''' - Container identifier default: inventory_hostname vars: + - name: inventory_hostname - name: ansible_host - name: ansible_lxc_host executable: