docs adjustments (batch 1) (#83341)

pull/83650/head
Alexei Znamensky 4 months ago committed by GitHub
parent 46ff7594a4
commit a60fb178b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -61,7 +61,7 @@ notes:
- The alias O(host) of the parameter O(name) is only available on Ansible 2.4 and newer. - The alias O(host) of the parameter O(name) is only available on Ansible 2.4 and newer.
- Since Ansible 2.4, the C(inventory_dir) variable is now set to V(None) instead of the 'global inventory source', - Since Ansible 2.4, the C(inventory_dir) variable is now set to V(None) instead of the 'global inventory source',
because you can now have multiple sources. An example was added that shows how to partially restore the previous behaviour. because you can now have multiple sources. An example was added that shows how to partially restore the previous behaviour.
- Though this module does not change the remote host, we do provide 'changed' status as it can be useful for those trying to track inventory changes. - Though this module does not change the remote host, we do provide C(changed) status as it can be useful for those trying to track inventory changes.
- The hosts added will not bypass the C(--limit) from the command line, so both of those need to be in agreement to make them available as play targets. - The hosts added will not bypass the C(--limit) from the command line, so both of those need to be in agreement to make them available as play targets.
They are still available from hostvars and for delegation as a normal part of the inventory. They are still available from hostvars and for delegation as a normal part of the inventory.
seealso: seealso:

@ -63,21 +63,20 @@ options:
default: 'no' default: 'no'
default_release: default_release:
description: description:
- Corresponds to the C(-t) option for I(apt) and sets pin priorities - Corresponds to the C(-t) option for I(apt) and sets pin priorities.
aliases: [ default-release ] aliases: [ default-release ]
type: str type: str
install_recommends: install_recommends:
description: description:
- Corresponds to the C(--no-install-recommends) option for I(apt). V(true) installs recommended packages. V(false) does not install - Corresponds to the C(--no-install-recommends) option for C(apt). V(true) installs recommended packages. V(false) does not install
recommended packages. By default, Ansible will use the same defaults as the operating system. Suggested packages are never installed. recommended packages. By default, Ansible will use the same defaults as the operating system. Suggested packages are never installed.
aliases: [ install-recommends ] aliases: [ install-recommends ]
type: bool type: bool
force: force:
description: description:
- 'Corresponds to the C(--force-yes) to I(apt-get) and implies O(allow_unauthenticated=yes) and O(allow_downgrade=yes)' - 'Corresponds to the C(--force-yes) to C(apt-get) and implies O(allow_unauthenticated=yes) and O(allow_downgrade=yes).'
- "This option will disable checking both the packages' signatures and the certificates of the - "This option will disable checking both the packages' signatures and the certificates of the web servers they are downloaded from."
web servers they are downloaded from." - 'This option *is not* the equivalent of passing the C(-f) flag to C(apt-get) on the command line.'
- 'This option *is not* the equivalent of passing the C(-f) flag to I(apt-get) on the command line'
- '**This is a destructive operation with the potential to destroy your system, and it should almost never be used.** - '**This is a destructive operation with the potential to destroy your system, and it should almost never be used.**
Please also see C(man apt-get) for more information.' Please also see C(man apt-get) for more information.'
type: bool type: bool
@ -85,7 +84,7 @@ options:
clean: clean:
description: description:
- Run the equivalent of C(apt-get clean) to clear out the local repository of retrieved package files. It removes everything but - Run the equivalent of C(apt-get clean) to clear out the local repository of retrieved package files. It removes everything but
the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. the lock file from C(/var/cache/apt/archives/) and C(/var/cache/apt/archives/partial/).
- Can be run as part of the package installation (clean runs before install) or as a separate step. - Can be run as part of the package installation (clean runs before install) or as a separate step.
type: bool type: bool
default: 'no' default: 'no'
@ -93,7 +92,7 @@ options:
allow_unauthenticated: allow_unauthenticated:
description: description:
- Ignore if packages cannot be authenticated. This is useful for bootstrapping environments that manage their own apt-key setup. - Ignore if packages cannot be authenticated. This is useful for bootstrapping environments that manage their own apt-key setup.
- 'O(allow_unauthenticated) is only supported with O(state): V(install)/V(present)' - 'O(allow_unauthenticated) is only supported with O(state): V(install)/V(present).'
aliases: [ allow-unauthenticated ] aliases: [ allow-unauthenticated ]
type: bool type: bool
default: 'no' default: 'no'
@ -111,7 +110,7 @@ options:
version_added: "2.12" version_added: "2.12"
allow_change_held_packages: allow_change_held_packages:
description: description:
- Allows changing the version of a package which is on the apt hold list - Allows changing the version of a package which is on the apt hold list.
type: bool type: bool
default: 'no' default: 'no'
version_added: '2.13' version_added: '2.13'
@ -128,14 +127,14 @@ options:
type: str type: str
dpkg_options: dpkg_options:
description: description:
- Add dpkg options to apt command. Defaults to '-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"' - Add C(dpkg) options to C(apt) command. Defaults to C(-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold").
- Options should be supplied as comma separated list - Options should be supplied as comma separated list.
default: force-confdef,force-confold default: force-confdef,force-confold
type: str type: str
deb: deb:
description: description:
- Path to a .deb package on the remote machine. - Path to a .deb package on the remote machine.
- If :// in the path, ansible will attempt to download deb before installing. (Version added 2.1) - If C(://) in the path, ansible will attempt to download deb before installing. (Version added 2.1)
- Requires the C(xz-utils) package to extract the control file of the deb package to install. - Requires the C(xz-utils) package to extract the control file of the deb package to install.
type: path type: path
required: false required: false
@ -143,7 +142,8 @@ options:
autoremove: autoremove:
description: description:
- If V(true), remove unused dependency packages for all module states except V(build-dep). It can also be used as the only option. - If V(true), remove unused dependency packages for all module states except V(build-dep). It can also be used as the only option.
- Previous to version 2.4, autoclean was also an alias for autoremove, now it is its own separate command. See documentation for further information. - Previous to version 2.4, O(autoclean) was also an alias for O(autoremove), now it is its own separate command.
See documentation for further information.
type: bool type: bool
default: 'no' default: 'no'
version_added: "2.1" version_added: "2.1"
@ -155,10 +155,10 @@ options:
version_added: "2.4" version_added: "2.4"
policy_rc_d: policy_rc_d:
description: description:
- Force the exit code of /usr/sbin/policy-rc.d. - Force the exit code of C(/usr/sbin/policy-rc.d).
- For example, if I(policy_rc_d=101) the installed package will not trigger a service start. - For example, if O(policy_rc_d=101) the installed package will not trigger a service start.
- If /usr/sbin/policy-rc.d already exists, it is backed up and restored after the package installation. - If C(/usr/sbin/policy-rc.d) already exists, it is backed up and restored after the package installation.
- If V(null), the /usr/sbin/policy-rc.d isn't created/changed. - If V(null), the C(/usr/sbin/policy-rc.d) is not created/changed.
type: int type: int
default: null default: null
version_added: "2.8" version_added: "2.8"
@ -179,7 +179,7 @@ options:
version_added: "2.11" version_added: "2.11"
force_apt_get: force_apt_get:
description: description:
- Force usage of apt-get instead of aptitude - Force usage of apt-get instead of aptitude.
type: bool type: bool
default: 'no' default: 'no'
version_added: "2.4" version_added: "2.4"
@ -205,16 +205,16 @@ attributes:
platforms: debian platforms: debian
notes: notes:
- Three of the upgrade modes (V(full), V(safe) and its alias V(true)) required C(aptitude) up to 2.3, since 2.4 C(apt-get) is used as a fall-back. - Three of the upgrade modes (V(full), V(safe) and its alias V(true)) required C(aptitude) up to 2.3, since 2.4 C(apt-get) is used as a fall-back.
- In most cases, packages installed with apt will start newly installed services by default. Most distributions have mechanisms to avoid this. - In most cases, packages installed with I(apt) will start newly installed services by default. Most distributions have mechanisms to avoid this.
For example when installing Postgresql-9.5 in Debian 9, creating an executable shell script (/usr/sbin/policy-rc.d) that throws For example when installing Postgresql-9.5 in Debian 9, creating an executable shell script (/usr/sbin/policy-rc.d) that throws
a return code of 101 will stop Postgresql 9.5 starting up after install. Remove the file or its execute permission afterward. a return code of 101 will stop Postgresql 9.5 starting up after install. Remove the file or its execute permission afterward.
- The apt-get commandline supports implicit regex matches here but we do not because it can let typos through easier - The C(apt-get) commandline supports implicit regex matches here but we do not because it can let typos through easier
(If you typo C(foo) as C(fo) apt-get would install packages that have "fo" in their name with a warning and a prompt for the user. (If you typo C(foo) as C(fo) apt-get would install packages that have "fo" in their name with a warning and a prompt for the user.
Since we don't have warnings and prompts before installing, we disallow this.Use an explicit fnmatch pattern if you want wildcarding) Since there are no warnings and prompts before installing, we disallow this. Use an explicit fnmatch pattern if you want wildcarding).
- 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 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 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. - 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 interpreter can't import C(python-apt)/C(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 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. If the dependency is found or installed, the module will be respawned under the correct interpreter.
''' '''

@ -26,13 +26,13 @@ attributes:
platform: platform:
platforms: debian platforms: debian
notes: notes:
- The apt-key command used by this module has been deprecated. See the L(Debian wiki,https://wiki.debian.org/DebianRepository/UseThirdParty) for details. - The C(apt-key) command used by this module has been deprecated. See the L(Debian wiki,https://wiki.debian.org/DebianRepository/UseThirdParty) for details.
This module is kept for backwards compatibility for systems that still use apt-key as the main way to manage apt repository keys. This module is kept for backwards compatibility for systems that still use C(apt-key) as the main way to manage apt repository keys.
- As a sanity check, downloaded key id must match the one specified. - As a sanity check, downloaded key id must match the one specified.
- "Use full fingerprint (40 characters) key ids to avoid key collisions. - "Use full fingerprint (40 characters) key ids to avoid key collisions.
To generate a full-fingerprint imported key: C(apt-key adv --list-public-keys --with-fingerprint --with-colons)." To generate a full-fingerprint imported key: C(apt-key adv --list-public-keys --with-fingerprint --with-colons)."
- If you specify both the key id and the URL with O(state=present), the task can verify or add the key as needed. - If you specify both the key O(id) and the O(url) with O(state=present), the task can verify or add the key as needed.
- Adding a new key requires an apt cache update (e.g. using the M(ansible.builtin.apt) module's update_cache option). - Adding a new key requires an apt cache update (e.g. using the M(ansible.builtin.apt) module's C(update_cache) option).
requirements: requirements:
- gpg - gpg
seealso: seealso:

@ -41,7 +41,7 @@ options:
default: "present" default: "present"
mode: mode:
description: description:
- The octal mode for newly created files in sources.list.d. - The octal mode for newly created files in C(sources.list.d).
- Default is what system uses (probably 0644). - Default is what system uses (probably 0644).
type: raw type: raw
version_added: "1.6" version_added: "1.6"
@ -72,9 +72,9 @@ options:
version_added: '1.8' version_added: '1.8'
filename: filename:
description: description:
- Sets the name of the source list file in sources.list.d. - Sets the name of the source list file in C(sources.list.d).
Defaults to a file name based on the repository source url. Defaults to a file name based on the repository source url.
The .list extension will be automatically added. The C(.list) extension will be automatically added.
type: str type: str
version_added: '2.1' version_added: '2.1'
codename: codename:

Loading…
Cancel
Save