5310bab12f
One of the usual issue is that run_command return bytes, so we have to adapt the string to either be bytes too, or convert to string. This result into that kind of traceback: Traceback (most recent call last): File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 1009, in <module> main() File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 873, in main git_version_used = git_version(git_path, module) File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 788, in git_version rematch = re.search('git version (.*)$', out) File \"/usr/lib64/python3.5/re.py\", line 173, in search return _compile(pattern, flags).search(string) TypeError: cannot use a string pattern on a bytes-like object Another issue is filter being a object instead of a list. |
||
---|---|---|
.github | ||
cloud | ||
commands | ||
database | ||
files | ||
inventory | ||
network | ||
packaging | ||
source_control | ||
system | ||
test | ||
utilities | ||
web_infrastructure | ||
windows | ||
.gitignore | ||
.travis.yml | ||
__init__.py | ||
CONTRIBUTING.md | ||
COPYING | ||
README.md | ||
shippable.yml | ||
test-docs.sh | ||
test-requirements.txt | ||
VERSION |
ansible-modules-core
This repo contains Ansible's most popular modules that are shipped with Ansible.
New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.
Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.
Reporting bugs
Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.
Testing modules
Ansible module development guide contains the latest info about that.
License
As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.
Installation
There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.