Commit Graph
54713 Commits
Author SHA1 Message Date
Felix FonteinandGitHub 3d4bd79574 validate-modules: detect names set mismatch between argument spec and documentation (#83599) 2024-07-28 15:39:01 +00:00
7e3916b767 Typo fixes and other bits and bobs (#83672)
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
2024-07-27 09:16:34 -07:00
Abhijeet KasurdeandGitHub 8e74cdc7b2 Set LANGUAGE env variable is set to a non-English locale (#83671)
Fixes: #83608

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-26 15:50:23 -07:00
Jordan BoreanandGitHub a3a92bcc13 Remove explicit shell environment docs (#83649)
Removes the docs for the environment keyword in the shell base plugins
as they are a no-op in the plugins themselves. The environment value is
provided by the action base which gets it from the action base on the
task.environment value. This should avoid confusion around how its being
set and removes some code that is not used at all.
2024-07-26 15:21:33 +10:00
Abhijeet KasurdeandGitHub fe1183f8ac Replace random with secrets (#83668)
Use secrets library instead of random.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-25 14:31:41 -07:00
Abhijeet KasurdeandGitHub 504f5b1230 apt: Report change when package is removed (#83547)
While upgrade process removes a package, module should
report changed=True instead of changed=False

Fixes: #46314

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-25 15:01:46 +00:00
Sloane HertelandGitHub 33565f3774 increase timeout downloading galaxy role URLs (#83562)
* Update the timeout to download role archive to 60 seconds to match collections
TODO: in future make a configurable 'artifact download timeout'
2024-07-23 21:56:15 +00:00
Abhijeet KasurdeandGitHub cd105d479a display: warn user about empty log path value (#83381)
Fixes: #79959

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-23 21:21:23 +00:00
6371a883d4 Added info about MacOS targets for cron module (#83620)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-23 18:37:57 +00:00
Matt ClayandGitHub 79f819dc54 ansible-test - Remove VyOS tests and support files (#83650)
The VyOS remote image required for running the tests is no longer functional.
2024-07-22 13:42:06 -07:00
Alexei ZnamenskyandGitHub d36dc70afc remove ignore clauses for module find (#83575)
add testcase for expanding home dir names
2024-07-22 10:10:49 -04:00
Alexei ZnamenskyandGitHub a60fb178b1 docs adjustments (batch 1) (#83341) 2024-07-21 08:31:19 -07:00
krescentandGitHub 46ff7594a4 env: update examples for setting default values to variable (#83370) 2024-07-21 08:12:55 -07:00
Matt Clay f261a6142f Use build instead of pep517 for integration test 2024-07-19 10:03:29 -07:00
Matt Clay b90c3a8de5 Revert "🧪 Use setuptools [core] @ collections_runtime_pythonpath (#83627)"
This reverts commit 0d5460df16.
2024-07-19 10:03:29 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub 0d5460df16 🧪 Use setuptools [core] @ collections_runtime_pythonpath (#83627) 2024-07-19 16:22:33 +02:00
Alexei ZnamenskyandGitHub eeb9b50669 remove ignore clauses for module lineinfile (#83595) 2024-07-18 15:51:08 -04:00
Peter A. BigotandGitHub c904bffc7d debconf: handle boolean value representation consistently (#83601)
* lift code that normalizes value type for boolean vtype to cover both
  branches of conditional.
* remove obsolete and incomplete conversion of type in set_selection.

Fixes: #83594
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2024-07-18 12:50:31 -07:00
Alexei ZnamenskyandGitHub 4408b2c3e1 replace - fix documentation and remove ignore clauses (#83574) 2024-07-18 15:14:23 -04:00
Matt ClayandGitHub 906c969b55 ansible-test - Improve unknown env error message (#83610) 2024-07-15 16:37:40 +00:00
Alex BarthandGitHub 506d12de69 Update any.yml (#83588)
* fixed typo in description
* fixed comment in examples
2024-07-15 08:05:28 -07:00
0eeb933238 module compression is now again settable via var (#83573)
Previous change overlooked 'uncommenting' the variable entry as a way to update this  to keep the functionality.


Co-authored-by: Glandos <bugs-github@antipoul.fr>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-07-12 11:38:50 -04:00
Alexei ZnamenskyandGitHub 08de64076a remove ignore clauses for module blockinfile (#83577) 2024-07-11 08:56:05 -07:00
rebtoorandGitHub 7cf7dff3a6 Ensure that we are handling DownloadError properly in the dnf module (#83543)
Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
2024-07-10 10:02:51 -06:00
28cef00576 dnf: follow-up on is_newer_installed arches fix (#83556)
* dnf: follow-up on is_newer_installed arches fix

* fix for the non package object case

* prevent early bailout in dnf _is_newer_version_installed
* non-installed available arches would fail out of the check early

---------

Co-authored-by: Matt Davis <nitzmahone@redhat.com>
2024-07-09 20:26:29 +00:00
Alexei ZnamenskyandGitHub 293bba7533 fix misc. documentation typos and formatting for modules starting with u-y (#83422) 2024-07-09 15:29:15 -04:00
Alexei ZnamenskyandGitHub 313f9d9f69 fix misc. documentation typos and formatting for modules starting with s (#83420) 2024-07-09 15:26:54 -04:00
Matt ClayandGitHub 9cdfcd9aed ansible-test - Update nios-test-container to 4.0.0 (#83539) 2024-07-09 10:37:11 -07:00
Matt ClayandGitHub 10997ab3aa ansible-test - Update base/default containers (#83553) 2024-07-09 17:25:20 +00:00
Matt ClayandGitHub 20a815b03f Quality-of-life improvements for release tool (#83551)
* Quality-of-life improvements for release tool

- Default devel releases to b1
- Default non-devel releases to rc1
- Default to release announcement to console
- Avoid auto-links in GH release annoucements for file sizes
2024-07-09 10:17:28 -07:00
4a1775acd3 review modules docs - batch(fragments) (#83431)
Co-authored-by: flowerysong <junk+github@flowerysong.com>
2024-07-09 17:13:10 +00:00
Dhanesh RandGitHub 9472005dee update distro version to 1.9.0 (#83540) 2024-07-09 16:48:43 +00:00
flowerysongandGitHub 4f6a4534a7 known_hosts: don't modify AnsibleModule.params (#83517)
Using this dictionary to store the return values results in
the return values showing up in the returned
`invocation['module_args']`, which is confusing. It also causes all
module arguments to be returned, which is preserved by this change but
should ideally be removed in the future.
2024-07-09 09:07:45 -06:00
Jan Christian GrünhageandGitHub 83a0975611 Add dinit as a service_mgr (#83489) 2024-07-08 22:30:10 +00:00
Harshvardhan SharmaandGitHub 43346f1fdc Add SL-Micro to Suse family list (#83541) 2024-07-07 21:37:32 -07:00
MajesticMagikarpKingandGitHub edce798713 Fix Creating user directory using tilde always reports "changed" (#83113)
Fixes: #82490
2024-07-07 19:26:14 +00:00
e5309ba29f validate-modules: reject option/alias names equal up to casing belonging to different options (#83530)
* Reject option/alias names equal up to casing belonging to different options.

* Update test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2024-07-05 19:35:54 -04:00
flowerysongandGitHub 63538f7779 package_facts: fix warning logic (#83520)
* package_facts: fix warning logic

* Refactor so that warnings can work
2024-07-05 13:27:45 -04:00
Martin KrizekandGitHub 775bc1110e linear: fix included handlers executing in lockstep (#83209)
Fixes #83019
2024-07-04 09:33:37 +02:00
Martin KrizekandGitHub 571e2a9551 Fix incorrect rc when executing end_host in rescue (#83522)
Fixes #83447
2024-07-04 09:19:56 +02:00
Brian CocaandGitHub 6c0f4c8a2d hostvars templating fix, override serialization (#83509)
fixes #82872
nicer implementation courtesy of nitzmahone
2024-07-02 14:27:17 -04:00
Felix FonteinandGitHub 7d678cbd96 Fix require_only_one. (#83511) 2024-07-02 09:36:23 -04:00
00ddc27d69 actually show plugin config warnings/deprecations (#82593)
previouslly we recorded but did not show to avoid spam
since we could not dedup from forks, that was already
fixed in another PR so now we can show/display them.

Also:
  * funcitonalize deprecation msg construct from docs
  * reuse formatting func in cli
  * normalize alternatives: most of the code used intended plural
    but some and most data/tests used the singular
  * update schemas and tests

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-07-01 19:56:19 -04:00
Tiago R. CunhaandGitHub 101f017ef5 Replace references to archived ansible/ansible-examples repository (#83500)
* Replace references to archived ansible/ansible-examples repository

* Update examples to reference ansible repository

* Include HTTPS among SSH references in examples
2024-07-01 12:06:53 +00:00
a8e4106c47 Fix tb for when env var contains % (#83499)
Fixes #83498

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2024-06-28 16:50:45 +02:00
Martin KrizekandGitHub 665d2e15d7 dnf: remove legacy code (#83298) 2024-06-28 15:49:42 +02:00
Benoît KnechtandGitHub 41ba6536cf facts/hardware: Fix support_discard block device fact (#83480)
Previously, `support_discard` simply returned the value of
`/sys/block/{device}/queue/discard_granularity`. When its value is `0`, then
the block device doesn't support discards; _however_, it being greater than
zero doesn't necessarily mean that the block device _does_ support discards.

But another indication that a block device doesn't support discards is
`/sys/block/{device}/queue/discard_max_hw_bytes` being equal to `0` (with the
same caveat as above). So if either of those are `0`, set `support_discard` to
zero, otherwise set it to the value of `discard_granularity` for backwards
compatibility.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2024-06-28 09:40:14 -04:00
Martin KrizekandGitHub 2930a4664c dnf - arches must be the same in the is_newer_installed check (#83417)
Fixes #83406
2024-06-28 11:45:40 +02:00
7a3f9384cf Fix simmilar branches (#83497)
Identical branches in conditional node: 'elif name != permanent_hostname' and 'else'. First bruch is not nessesary

Co-authored-by: mar.s <marchenkov.s.d@gmail.com>
2024-06-27 12:30:13 -07:00
Martin KrizekandGitHub 0ee6e39615 dnf, dnf5: fix installing via wildcard (#83481)
Fixes #83373
2024-06-26 16:36:12 +02:00