summaryrefslogtreecommitdiff
path: root/lib/ansible
Commit message (Collapse)AuthorAgeFilesLines
...
* blockinfile - document multiline marker behavior (#79292)Sloane Hertel2022-11-031-0/+2
|
* added --allow-change-held-packages for apt remove (#78203)inifares23lab2022-11-021-3/+27
| | | | | | | | | * added --allow-change-held-packages for apt remove * add tests for apt remove (allow_change_held_packages=yes) * add changelog for apt remove (allow-change-held-packages=yes) * update tests for apt remove (allow_change_held_packages=yes)
* Fix up sanity problemsJordan Borean2022-11-023-11/+11
|
* replace yes/no with true/false in docstrings (#79274)Alicia Cozine2022-11-0126-98/+98
| | | Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* validate-modules: do not treat falsy non-`False` defaults as `None` (#79267)Felix Fontein2022-11-018-4/+17
| | | | | | | * Do not treat falsy non-False defaults as None. * Fix various instances of this in modules. * Add changelog fragment.
* De-duplicate initialisation of ConnectionBase._connected (#79256)Alex Willmer2022-11-011-2/+0
| | | The same value is unconditionally set 4 lines down.
* mention acl in permissions errors (#79209)Brian Coca2022-10-271-4/+4
| | | | | | | | as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl in newer versions can lead to some confusion fixes #79146
* File lookup handle missing file more gracefully (#79230)Brian Coca2022-10-271-7/+7
| | | | | previously it would have a 2nd tb due to bad error raising also remove superfluous warning
* plugins/lookup/pipe: docs typo fixes (#79222)Kenyon Ralph2022-10-271-2/+2
|
* give a warning when no roles match the search instead of returning rc 1 (#79195)Sloane Hertel2022-10-251-2/+2
| | | | | | | | | * give a warning when no roles match the search instead of returning rc 1 * porting guide note * Update docs/docsite/rst/porting_guides/porting_guide_core_2.15.rst Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* documentation fix for file module 78988 (#79182)prasadpatil492022-10-241-1/+2
|
* Revert "Fix yum exclude example to align to parameter doc (#79128)" (#79179)Sandra McCann2022-10-201-3/+1
| | | This reverts commit 062315ecaaf1096f808b68eb8d88cf8ab3ab2cfc.
* Setting indentation correctly in the Example section (#79072)Bart Dorlandt2022-10-201-2/+2
|
* Fix yum exclude example to align to parameter doc (#79128)Olivier Clavel2022-10-201-1/+3
|
* Fix isinstance check (#79159)Sloane Hertel2022-10-181-3/+2
| | | Use GalaxyAPI for isinstance check instead of RoleDistributionServer, since the latter is defined in __main__ sometimes (when running integration tests or ansible-galaxy from source) and importing from ansible.cli.galaxy won't reference the same object.
* copy, avoid moving non temp remote 'non' files (#79102)Brian Coca2022-10-171-13/+18
| | | | * copy, avoid moving non temp remote files that are not dirs/files fix tests
* ansible-galaxy install - fix unnecessary api check when installing a role ↵Sloane Hertel2022-10-142-24/+48
| | | | | from git repo (#79090) * delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install
* Docs: file parameter import_tasks and include_tasks (#79077)Don Naro2022-10-132-9/+17
| | | | | | | | | | | | | | | | | * issue #79022 file parameter import_tasks and include_tasks * adding details back * Update lib/ansible/modules/import_tasks.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update lib/ansible/modules/include_tasks.py Co-authored-by: Felix Fontein <felix@fontein.de> * use pipe as in original version Co-authored-by: Felix Fontein <felix@fontein.de>
* Don't assume column index for netmask and broadcast (#79121)Matt Martz2022-10-131-8/+19
| | | | | * Don't assume column index for netmask and broadcast. Fixes #79117 * fix typo
* jinja2_native: preserve quotes in strings (#79119)Martin Krizek2022-10-121-1/+7
| | | Fixes #79083
* compile role with all parents in the dep chain (#79079)Sloane Hertel2022-10-122-5/+8
| | | | | fix inheriting from parents when role depth exceeds 3 Fixes #47023
* Disable IP address lookups in iptables -module when listing (#78828)mtoivo2022-10-111-0/+14
| | | | | * add --numeric to list Co-authored-by: Mikko Toivola <mikko.toivola@insta.fi>
* fix password lookup's use of f=v settings (#76551)Brian Coca2022-10-111-62/+60
| | | | update tests
* Cache field attributes list on the playbook classes (#79091)Martin Krizek2022-10-111-1/+9
| | | | * Cache field attributes list on the playbook classes
* Misc Typo fixes (#79088)Abhijeet Kasurde2022-10-109-14/+14
|
* Fix empty str defaults in config/base.yml (#77733)Sloane Hertel2022-10-071-1/+1
| | | | | * fix empty str default for config/base.yml config options by rendering '' instead of ``''`` Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* copy module - fix copying directories recursively with remote_src=True (#76997)Sloane Hertel2022-10-071-5/+3
| | | | | * copy module - fix copying directories containing modified subdirs with remote_src=True. Previously, the first changed subdir would prevent recursively checking for changes for in subdirs at the same level. * Fix reporting changed for copying empty directories with remote_src=True. If a directory is created on the remote but nothing else, changed is True.
* ansible-config, only subvalues should use yaml shorthand (#79073)Brian Coca2022-10-071-3/+7
| | | | | | | | | | | | | * ensure we only use shorthand for assigned values * fix ansible-config std display * split baby * killed offending whitespace * moved to func instead * the revenge of whitespace
* Custom salt for ansible-vault encrypt (#79063)Brian Coca2022-10-072-1/+16
| | | | | | | | | | * Custom salt for ansible-vault encrypt add VAULT_ENCRYPT_SALT config add salt testing Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Piotr Stawarski <p@stawarski.pl>
* Fix collection install from source respects symlinks (#78983)sbettid2022-10-061-4/+11
| | | | | | | * Fix installation from source transforms symlinks of dirs to empty dirs * Add test to check symlinks to dirs are respected when installing from source * Add changelog for collection install from source symlink to dirs issue
* Ensure that we do not squash keywords in validate (#79049)Matt Martz2022-10-063-5/+9
| | | | | | | | | | | | | | | | | * Ensure that we do not squash keywords in validate. Fixes #79021 * become_user: nobody should only apply to the test tasks, not the setup_test_user role * Update how become_user is specified * Add test to ensure keyword inheritance is working for become * Add clog frag * Cache fattributes to prevent re-calculation * ci_complete * Remove unnecessary getattr
* facts: List all local (scope host) IP address ranges (#79018)Donatas Abraitis2022-10-061-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | After changes: ``` "ansible_locally_reachable_ips": { "ipv4": [ "127.0.0.0/8", "127.0.0.1", "192.168.0.1", "192.168.1.0/24" ], "ipv6": [ "::1", "fe80::2eea:7fff:feca:fe68", ... ] }, ``` 192.168.1.0/24 is a local prefix, where any IP address inside this range is reachable locally (or outside this host if this prefix is announced via EGP/IGP). Signed-off-by: Donatas Abraitis <donatas.abraitis@hostinger.com>
* Fix using FQCN for flush_handlers (#79057)Martin Krizek2022-10-061-1/+1
| | | Fixes #79023
* Add password_hash filter and fix some nits (#78743)Leo Ochoa2022-10-061-3/+3
| | | Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Use python re to parse service output instead of grep (#79015)Matt Martz2022-10-051-8/+12
| | | | | | | * Use python re to parse service output instead of grep. Fixes #78541 * Add clog frag * Add an extra guard to abort if rc is 4, and /etc/init.d is missing
* fixes to FA inheritance (#78990)Brian Coca2022-10-043-17/+22
| | | | | | finalized applies to all field attributes fix getting parent value also remove unused/needed extend/prepend signature moar testing
* ansible-vault: add newline to the output of the 'encrypt_string' command ↵Dmytro Khomutnyk2022-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | (#79017) * ansible-vault: add newline to the output of the 'encrypt_string' command * Add comment with issue description and improve string joining * Add changelog fragment * Update changelogs/fragments/79017-ansible-vault-string-encryption-ending-with-newline.yml Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> * Fixed some typos in changelog fragment * Improve comment regarding newline character at the end of file Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* Do not crash templating when filter/test name is not a valid Ansible plugin ↵Felix Fontein2022-10-041-3/+7
| | | | | | | | name (#78913) * Do not crash templating when filter/test name is not a valid Ansible plugin name. * Store and re-raise KeyError if there was one. Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
* omit keyword should reset to context (#78917)Brian Coca2022-09-301-10/+25
| | | | | | | | * omit keyword should reset to context ensure we use context/inheritance when calculating value, using default only when context is unavailable. fixes #75692
* apt_key, fix example indentation Jasper2022-09-301-2/+2
| | | Co-authored-by: Matt Clay <matt@mystile.com>
* Fix connection/become task loop settings (#78565)Jordan Borean2022-09-301-11/+21
| | | | | * Fix connection/become task loop settings * Remove old code
* Deprecate using a list of dicts for vars. See #78920 (#78927)Matt Martz2022-09-291-1/+8
|
* Fixed spelling (#78911)Joel McGuire2022-09-291-1/+1
|
* avoid roles exporting vars: (#69040)Brian Coca2022-09-283-26/+54
| | | | | | | | | | | | | | | | - correct 'vars:' precedence to allow phasing out of include_params - actually merge vars and always include role_vars - avoided dupe deps from giving wrong vars - use 'first' instance of dep as others are from previous instances/invocations and can have diff values for vars - ensured deps only provide exportable vars themselves - added COMMENTS - added tests - apply export restrictions setting to defaults - use 'public' as cutoff Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> ci_complete
* Fix docs for new commonpath and normpath filters (#78897)Felix Fontein2022-09-282-7/+8
|
* make pager and editor configurable, specifically for ansible (#78816)Brian Coca2022-09-284-8/+34
| | | | | * make pager and editor configurable, specifically for ansilbe fallback on common ways to configure
* apt_repository, handle both new/old gpgp stds (#78735)Brian Coca2022-09-281-3/+10
| | | * apt_repository, handle both new/old gpgp stds
* apt module, prevent tb from invalid type for pkg (#78666)Brian Coca2022-09-281-3/+7
| | | | | * apt module, prevent tb from invalid type for pkg see #78663
* slight var loading optimization (#78835)Brian Coca2022-09-281-40/+47
| | | Avoid having to recalculate these values since they don't change from first access
* winrm - fix reducing 'Read timed out' error (#78869)Oskar Ahner2022-09-281-2/+23
| | | | | | | | | | | * winrm - fix reducing 'Read timed out' error This fix reduces the exceptiopn 'Read timed out. (read timeout=nnn)' occurring seemingly randomly and unpredictable on some networks (which have long latency and/or many hops or other problems). The fix ensures that the involved timeout is set to a value so this issue is reduced. * Add changelog fragment Co-authored-by: Jordan Borean <jborean93@gmail.com>