summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/replace.py
Commit message (Collapse)AuthorAgeFilesLines
* Use ansible.module_utils.common.text.converters (#80704)Matt Clay2023-05-031-1/+1
| | | Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
* validate-modules: do not treat falsy non-`False` defaults as `None` (#79267)Felix Fontein2022-11-011-0/+1
| | | | | | | * Do not treat falsy non-False defaults as None. * Fix various instances of this in modules. * Add changelog fragment.
* doc: Correct mixed up commentary and task name (#78610)rawtaz2022-08-251-1/+1
| | | Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* replace - always return rc (#71963)Jack Scheible2022-02-101-1/+1
| | | | | | | | | | | * Return rc=0 on success. Error handling in playbooks generally expects `rc` to be set to 0 when a module has not failed. Playbook authors should not have to check for the existence of `rc` first. * Use single definition and added changelog * Fix up tests with new return value Co-authored-by: Jordan Borean <jborean93@gmail.com>
* Remove shebangs from core Python modules. (#76664)Matt Clay2022-01-061-1/+0
| | | | | * Remove module shebangs. * Relax shebang check in validate-modules. * Add changelog fragment.
* attribs last PR for now ... i hope (#75778)Brian Coca2021-09-241-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * attribs last PR for now ... i hope * thatsallfolks! * fixes * Update lib/ansible/modules/template.py Co-authored-by: Matt Martz <matt@sivel.net> * Update lib/ansible/modules/validate_argument_spec.py Co-authored-by: Matt Martz <matt@sivel.net> * moar fixes * asldf * missing import * iswearihadaddedthese Co-authored-by: Matt Martz <matt@sivel.net>
* docs: Update Python 2 doc links (#74633)Abhijeet Kasurde2021-05-241-3/+3
| | | | | | | | | | | | | | | | | | | * docs: Update Python 2 doc links Update links from Python 2 to Python 3 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * use docs.python.com/3/ everywhere, except onethat should remain 2.6 * refer to python 3 in module docs and comments * format two python docs links as list * updates links in unwanted.py test file * per matt clay, this should link to python 2 Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* replace - better handling of file exceptions (#74686)David Shrewsbury2021-05-131-3/+7
|
* modules: fix documentation formatting (#72737)Andrew Klychkov2020-12-021-10/+13
|
* add FQCN to M() references (#70530)Baptiste Mille-Mathias2020-08-111-1/+1
| | | | Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
* starting metadata sunset (#69454)Brian Coca2020-06-041-4/+0
| | | | | | | | | | | | | * starting metadata sunset - purged metadata from any requirements - fix indent in generic handler for yaml content (whey metadata display was off) - make more resilient against bad formed docs - removed all metadata from docs template - remove metadata from schemas - removed mdata tests and from unrelated tests Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Rick Elrod <rick@elrod.me>
* Flatten the directory hierarchy of modules (#68966)Matt Martz2020-05-131-0/+302
* Flatten the directory hierarchy of modules * Update ignore.txt, flatten units * Update imports * Completely flatten the modules directory * Update sanity ignore * Fix some sanity test ignores * Fix relative import * Fix docs builds without category * ci_complete * Clean up docs. ci_complete * Adjust needs/file alias * ci_complete * fix hardcoded ping module paths Co-authored-by: Matt Davis <mrd@redhat.com>