From 4760dae989c8c86fe67cbcfbf2f11d8f51cda24a Mon Sep 17 00:00:00 2001 From: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:49:13 -0500 Subject: [PATCH] document apt auto-installed dep (#82503) --- lib/ansible/modules/apt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/apt.py b/lib/ansible/modules/apt.py index 58f8606ae34..3e5c3cf2007 100644 --- a/lib/ansible/modules/apt.py +++ b/lib/ansible/modules/apt.py @@ -213,6 +213,9 @@ notes: - When used with a C(loop:) each package will be processed individually, it is much more efficient to pass the list directly to the O(name) option. - When O(default_release) is used, an implicit priority of 990 is used. This is the same behavior as C(apt-get -t). - When an exact version is specified, an implicit priority of 1001 is used. + - If the interpreter can't import ``python-apt``/``python3-apt`` the module will check for it in system-owned interpreters as well. + If the dependency can't be found, the module will attempt to install it. + If the dependency is found or installed, the module will be respawned under the correct interpreter. ''' EXAMPLES = '''