From eafdf87b1bdeb14133194e2ad41df5e46350dd2b Mon Sep 17 00:00:00 2001 From: Corubba <97832352+corubba@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:55:18 +0200 Subject: [PATCH] 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 --- 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: