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: