status
stringclasses
1 value
repo_name
stringlengths
9
24
repo_url
stringlengths
28
43
issue_id
int64
1
104k
updated_files
stringlengths
8
1.76k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
37
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
timestamp[ns, tz=UTC]
language
stringclasses
5 values
commit_datetime
timestamp[us, tz=UTC]
closed
ansible/ansible
https://github.com/ansible/ansible
69,364
["changelogs/fragments/71205_get_url_allow_checksum_file_url.yml", "lib/ansible/modules/get_url.py", "test/integration/targets/get_url/tasks/main.yml"]
Allow digital signature verification in get_url
### SUMMARY The `get_url` module does file integrity checking and allows passing a SHASUM text file on a remote host over HTTP. Typically, binaries and their hashes are stored together so while the integrity control works there is no verification that the binary and its corresponding SHASUM file has not be altered by a malicious actor. Sometimes software providers will include a digital signature for cryptographically verifying the SHASUM file. This is a feature request to support verifying digital signatures. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME get_url ##### ADDITIONAL INFORMATION Consider the software package Vault by HashiCorp. It's a single binary in a zip archive precompiled for practically every common architecture and operating system. It's used to protect secrets, so there is value in a threat actor modifying the code to install backdoors or other code to compromise or disclose those secrets. HashiCorp is aware of this so they have a GPG key pair where the private key they keep secret and the public key they publish on their website and in all major GPG public key servers. Whenever they create a new release, they SHA256 all of the binaries, put them in a SHA256SUMS file, and sign it with their private key. I would imagine providing an attribute for `get_url` to specify the public key ID as well as the path to the digital signature. For example: ```yaml - name: Download vault get_url: url: https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_linux_arm64.zip dest: vault_1.4.1_linux_arm64.zip checksum: sha256:https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_SHA256SUMS checksum_sig: 51852D87348FFC4C:https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_SHA256SUMS.sig ``` Right now I have to download the SHA256SUMS file to verify the signature, and then I can't pass that file to the get_url checksum parameter because it only accepts the raw checksum or a URL; it would also be nice to pass a local path to this field and the hypothesized checksum_sig field. These are the steps I am using to ensure the integrity and authenticity of Vault: ```shell # Import HashiCorp's Public Key from the OpenGPG Public Key Server $ gpg --keyserver keys.openpgp.org --recv-keys 51852D87348FFC4C gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 51852D87348FFC4C: public key "HashiCorp Security <[email protected]>" imported gpg: Total number processed: 1 gpg: imported: 1 # Download all files $ curl -Os https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_SHA256SUMS $ curl -Os https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_SHA256SUMS.sig $ curl -Os https://releases.hashicorp.com/vault/1.4.1/vault_1.4.1_linux_arm64.zip # Verify signature $ gpg --verify vault_1.4.1_SHA256SUMS.sig vault_1.4.1_SHA256SUMS gpg: Signature made Thu Apr 30 08:20:29 2020 UTC gpg: using RSA key 51852D87348FFC4C gpg: Good signature from "HashiCorp Security <[email protected]>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 91A6 E7F8 5D05 C656 30BE F189 5185 2D87 348F FC4C # Verify binary hash $ shasum -a 256 -c vault_1.4.1_SHA256SUMS # ... vault_1.4.1_linux_arm64.zip: OK # ... ```
https://github.com/ansible/ansible/issues/69364
https://github.com/ansible/ansible/pull/71205
a1a50bb3cd0c2d6f2f4cb260a43553c23e806d8a
eb8b3a8479ec82ad622f86ac46f3e9cc083952b8
2020-05-07T03:37:43Z
python
2020-08-17T16:21:15Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,352
["changelogs/fragments/69352-netbsd-virtual-facts.yml", "docs/docsite/rst/porting_guides/porting_guide_2.11.rst", "lib/ansible/module_utils/facts/virtual/netbsd.py", "lib/ansible/module_utils/facts/virtual/sysctl.py"]
ansible_virtualization_type enhancements for NetBSD
##### SUMMARY NetBSD provides some sysctl, which could better determine, which hypervisor is used for this VM ##### ISSUE TYPE - Feature Idea / bugfix (KVM is not detected correctly if NetBSD runs as a VM on KVM) ##### COMPONENT NAME module_utils/facts/virtual/netbsd.py ##### ANSIBLE VERSION ``` ansible 2.9.0 config file = None configured module search path = ['/Users/mmersberger/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.9.0/libexec/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.5 (default, Nov 1 2019, 02:16:32) [Clang 11.0.0 (clang-1100.0.33.8)] ``` ##### ADDITIONAL INFORMATION NetBSD has a sysctl "machdep.hypervisor", which known quite well, which hypervisor is being used. The values are defined in https://github.com/NetBSD/src/blob/trunk/sys/arch/x86/x86/x86_machdep.c (const vm_guest_name[VM_LAST]) It also discovers KVM correctly. Ansibles' virtual/netbsd.py hopes, /dev/xencons only exists on xen domU's, which is unfortunately not the case To enhance/fix, sysctl's machdep.hypervisor result might be used in addtion (and esp. instead of checking for /dev/xencons) <!--- HINT: You can also paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/69352
https://github.com/ansible/ansible/pull/70467
fb7740ae3b5b660bd7f4a845293aab1612b24b9b
707458cc8cc78f5162d6ee76d01fc112499313be
2020-05-06T15:06:37Z
python
2020-07-07T22:28:13Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,334
["docs/docsite/rst/user_guide/collections_using.rst", "docs/docsite/rst/user_guide/playbooks_intro.rst"]
[2/2]Document how to migrate a playbook to use collections
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> Explain the ins and outs of playbooks -what works without any changes (aka modules that existed in 2.9) and what requires the FQCN (new modules added to a collection in 2.10 - even if the rest of that collection has migrated modules). Also explain any gotchas - like if two collections have the same module name (foo) and you use the `collections` keyword, the playbook will always use the foo module from the first collection listed. You must use FQCN in this instance to differentiate between modules that have the same name in different installed collections. This should be in the porting guide, but also update playbook pages to reflect this detail. <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/69334
https://github.com/ansible/ansible/pull/71816
31ddca4c0db2584b0a68880bdea1d97bd8b22032
d6063b7457086a2ed04899c47d1fc6ee4d654de9
2020-05-05T14:00:16Z
python
2020-09-24T14:45:11Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,320
["changelogs/fragments/69320-sys-path-cwd.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/executor/module_common.py"]
Ansible task with become !root fails with py3 (py2 is fine)
#### SUMMARY Ansible task with become !root fails with py3 (py2 is fine). ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME become ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.7 config file = /home/danj/git/git.chown.me/ansible/ansible.cfg configured module search path = ['/home/danj/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/danj/venv/ansible/lib/python3.8/site-packages/ansible executable location = /home/danj/venv/ansible/bin/ansible python version = 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` ANSIBLE_PIPELINING(/home/danj/git/git.chown.me/ansible/ansible.cfg) = True CACHE_PLUGIN(/home/danj/git/git.chown.me/ansible/ansible.cfg) = memory DEFAULT_ACTION_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/action_plugins'] DEFAULT_CALLBACK_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/callback_plugins'] DEFAULT_CONNECTION_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/connection_plugins'] DEFAULT_FILTER_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/filter_plugins'] DEFAULT_GATHERING(/home/danj/git/git.chown.me/ansible/ansible.cfg) = smart DEFAULT_HOST_LIST(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/home/danj/git/git.chown.me/ansible/hosts'] DEFAULT_LOOKUP_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/lookup_plugins'] DEFAULT_MANAGED_STR(/home/danj/git/git.chown.me/ansible/ansible.cfg) = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} DEFAULT_TIMEOUT(/home/danj/git/git.chown.me/ansible/ansible.cfg) = 10 DEFAULT_TRANSPORT(/home/danj/git/git.chown.me/ansible/ansible.cfg) = smart DEFAULT_VARS_PLUGIN_PATH(/home/danj/git/git.chown.me/ansible/ansible.cfg) = ['/usr/local/share/ansible_plugins/vars_plugins'] RETRY_FILES_ENABLED(/home/danj/git/git.chown.me/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT Ansible "client" is ubuntu 20.04, target is OpenBSD -current. ##### STEPS TO REPRODUCE ```yaml - name: add anoncvs.fr.obsd.org to the known hosts become_user: danj become: "yes" become_method: sudo lineinfile: dest: /home/danj/.ssh/known_hosts line: "anoncvs.fr.openbsd.org,145.238.209.46 ecdsa-sha2-nistp256 [...]" create: "yes" tags: - cvs - tmpcvs ``` Most stuff is done as root as the priviledge user is required but sometimes I use another user with become/sudo and it fails, whatever the module is (lineinfile like here, or shell etc). The problem is with become. ##### EXPECTED RESULTS It works with python2 (i.e. the target has ansible_python_interpreter=/usr/local/bin/python2) ``` TASK [cvs : add anoncvs.fr.obsd.org to the known hosts] *************************************************************************************************************************************** task path: /home/danj/git/git.chown.me/ansible/roles/cvs/tasks/main.yml:62 Using module file /home/danj/venv/ansible/lib/python3.8/site-packages/ansible/modules/files/lineinfile.py Pipelining is enabled. <virtie-root> ESTABLISH SSH CONNECTION FOR USER: root <virtie-root> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/danj/.ansible/cp/1f07b313ca virtie-root '/bin/sh -c '"'"'sudo -H -S -n -u danj /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-myjuvnfghfjvpjggsaqefxmykdpxfqqb ; /usr/local/bin/python2'"'"'"'"'"'"'"'"' && sleep 0'"'"'' Escalation succeeded <virtie-root> (0, b'\n{"msg": "", "diff": [{"after": "removed for privacy reason", "src": null, "seuser": null, "delimiter": null, "mode": null, "firstmatch": false, "attributes": null, "backup": false}}}\n', b'') ok: [virtie-root] => { "backup": "", "changed": false, "diff": [ { "after": "[removed for privacy reasons]", "after_header": "/home/danj/.ssh/known_hosts (content)", "before": "[removed for privacy reasons]", "before_header": "/home/danj/.ssh/known_hosts (content)" }, { "after_header": "/home/danj/.ssh/known_hosts (file attributes)", "before_header": "/home/danj/.ssh/known_hosts (file attributes)" } ], "invocation": { "module_args": { "attributes": null, "backrefs": false, "backup": false, "content": null, "create": true, "delimiter": null, "dest": "/home/danj/.ssh/known_hosts", "directory_mode": null, "firstmatch": false, "follow": false, "force": null, "group": null, "insertafter": null, "insertbefore": null, "line": "anoncvs.fr.openbsd.org,145.238.209.46 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIT93hmb9QFu8r8ZxbGk6xXKptPdFwg2xM0ClkQWqKuSXBPPDo6FSOdtUlfzJwaaWBnp+L+6SKJJZqLjepbfNyQ=", "mode": null, "owner": null, "path": "/home/danj/.ssh/known_hosts", "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": null, "state": "present", "unsafe_writes": null, "validate": null } }, "msg": "" } ``` ##### ACTUAL RESULTS With -vvv: (if I add more verbosity, it doesn't pretty print the stack trace so it's as readable as you can expect, i.e. it's not) ``` TASK [cvs : add anoncvs.fr.obsd.org to the known hosts] *************************************************************************************************************************************** task path: /home/danj/git/git.chown.me/ansible/roles/cvs/tasks/main.yml:62 Using module file /home/danj/venv/ansible/lib/python3.8/site-packages/ansible/modules/files/lineinfile.py Pipelining is enabled. <virtie-root> ESTABLISH SSH CONNECTION FOR USER: root <virtie-root> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/danj/.ansible/cp/1f07b313ca virtie-root '/bin/sh -c '"'"'sudo -H -S -n -u danj /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ybempfbcktyjiqpnfzkflihnyxlyekjq ; /usr/local/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"'' Escalation succeeded <virtie-root> (1, b'', b'Traceback (most recent call last):\n File "<stdin>", line 102, in <module>\n File "<stdin>", line 17, in _ansiballz_main\n File "<frozen importlib._bootstrap>", line 983, in _find_and_load\n File "<frozen importlib._bootstrap>", line 963, in _find_and_load_unlocked\n File "<frozen importlib._bootstrap>", line 906, in _find_spec\n File "<frozen importlib._bootstrap_external>", line 1280, in find_spec\n File "<frozen importlib._bootstrap_external>", line 1249, in _get_spec\n File "<frozen importlib._bootstrap_external>", line 1213, in _path_importer_cache\nPermissionError: [Errno 13] Permission denied\n') <virtie-root> Failed to connect to the host via ssh: Traceback (most recent call last): File "<stdin>", line 102, in <module> File "<stdin>", line 17, in _ansiballz_main File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 963, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 906, in _find_spec File "<frozen importlib._bootstrap_external>", line 1280, in find_spec File "<frozen importlib._bootstrap_external>", line 1249, in _get_spec File "<frozen importlib._bootstrap_external>", line 1213, in _path_importer_cache PermissionError: [Errno 13] Permission denied The full traceback is: Traceback (most recent call last): File "<stdin>", line 102, in <module> File "<stdin>", line 17, in _ansiballz_main File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 963, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 906, in _find_spec File "<frozen importlib._bootstrap_external>", line 1280, in find_spec File "<frozen importlib._bootstrap_external>", line 1249, in _get_spec File "<frozen importlib._bootstrap_external>", line 1213, in _path_importer_cache PermissionError: [Errno 13] Permission denied fatal: [virtie-root]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 17, in _ansiballz_main\n File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 963, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 906, in _find_spec\n File \"<frozen importlib._bootstrap_external>\", line 1280, in find_spec\n File \"<frozen importlib._bootstrap_external>\", line 1249, in _get_spec\n File \"<frozen importlib._bootstrap_external>\", line 1213, in _path_importer_cache\nPermissionError: [Errno 13] Permission denied\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } ``` Thanks!
https://github.com/ansible/ansible/issues/69320
https://github.com/ansible/ansible/pull/69342
79ab7984272120a5444bee9a0a1ea6e799789696
2abaf320d746c8680a0ce595ad0de93639c7e539
2020-05-04T19:48:27Z
python
2020-06-01T08:43:20Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,308
["changelogs/fragments/69463-fix-apt_repository-typeerror- instancemethod.yaml", "lib/ansible/modules/apt_repository.py"]
apt_repository: broken on python 2.6 with TypeError: instancemethod expected at least 2 arguments, got 0
##### SUMMARY apt_repository throws exception "TypeError: instancemethod expected at least 2 arguments, got 0" This is the same issue than #57195 which has been closed, but still persist. Please note that I'm fully aware that python 2.6 is old, and debian6 is very old. However the documentation says that python2.6 is supported for managed nodes (and not for management Host), so this module is expected to work on this system, and actually it WAS working before ansible 2.9 release. Thanks. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME apt_repository ##### ANSIBLE VERSION ``` ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/some/path/to/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 9.2.1 20191008] ``` ##### CONFIGURATION ```paste below DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/some/path/to/ansible/ansible-playbooks/roles'] ``` ##### OS / ENVIRONMENT Ansible managed host: Debian 6 (squeeze) Ansible management Host : Ubuntu 19.10 (eoan) ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Debian Install Debian Archive repository if unsupported release apt_repository: repo='deb http://archive.debian.org/debian {{ ansible_lsb.codename }} main contrib non-free' state=present ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ```paste below changed: [test-wheezy] => { "changed": true, "diff": {}, "invocation": { "module_args": { "codename": null, "filename": null, "install_python_apt": true, "mode": null, "repo": "deb http://archive.debian.org/debian wheezy main contrib non-free", "state": "present", "update_cache": true, "validate_certs": true } }, "repo": "deb http://archive.debian.org/debian wheezy main contrib non-free", "state": "present" } ``` ##### ACTUAL RESULTS ```paste below The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py", line 102, in <module> _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py", line 40, in invoke_module runpy.run_module(mod_name='ansible.modules.packaging.os.apt_repository', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib/python2.6/runpy.py", line 136, in run_module fname, loader, pkg_name) File "/usr/lib/python2.6/runpy.py", line 54, in _run_module_code mod_loader, pkg_name) File "/usr/lib/python2.6/runpy.py", line 34, in _run_code exec code in run_globals File "/tmp/ansible_apt_repository_payload_WYbsqp/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py", line 564, in <module> File "/tmp/ansible_apt_repository_payload_WYbsqp/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py", line 519, in main File "/usr/lib/python2.6/copy.py", line 189, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct state = deepcopy(state, memo) File "/usr/lib/python2.6/copy.py", line 162, in deepcopy y = copier(x, memo) File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/lib/python2.6/copy.py", line 189, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct state = deepcopy(state, memo) File "/usr/lib/python2.6/copy.py", line 162, in deepcopy y = copier(x, memo) File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/lib/python2.6/copy.py", line 162, in deepcopy y = copier(x, memo) File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/lib/python2.6/copy.py", line 189, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/lib/python2.6/copy.py", line 323, in _reconstruct y = callable(*args) File "/usr/lib/python2.6/copy_reg.py", line 93, in __newobj__ return cls.__new__(cls, *args) TypeError: instancemethod expected at least 2 arguments, got 0 fatal: [heb-3ce-164-3ce-164]: FAILED! => { "changed": false, "module_stderr": "Shared connection to 194.2.77.164 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1588602884.56-23679-48530295011405/AnsiballZ_apt_repository.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.packaging.os.apt_repository', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib/python2.6/runpy.py\", line 136, in run_module\r\n fname, loader, pkg_name)\r\n File \"/usr/lib/python2.6/runpy.py\", line 54, in _run_module_code\r\n mod_loader, pkg_name)\r\n File \"/usr/lib/python2.6/runpy.py\", line 34, in _run_code\r\n exec code in run_globals\r\n File \"/tmp/ansible_apt_repository_payload_WYbsqp/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py\", line 564, in <module>\r\n File \"/tmp/ansible_apt_repository_payload_WYbsqp/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py\", line 519, in main\r\n File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n y = _reconstruct(x, rv, 1, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 338, in _reconstruct\r\n state = deepcopy(state, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 162, in deepcopy\r\n y = copier(x, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 255, in _deepcopy_dict\r\n y[deepcopy(key, memo)] = deepcopy(value, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n y = _reconstruct(x, rv, 1, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 338, in _reconstruct\r\n state = deepcopy(state, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 162, in deepcopy\r\n y = copier(x, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 255, in _deepcopy_dict\r\n y[deepcopy(key, memo)] = deepcopy(value, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 162, in deepcopy\r\n y = copier(x, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 255, in _deepcopy_dict\r\n y[deepcopy(key, memo)] = deepcopy(value, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n y = _reconstruct(x, rv, 1, memo)\r\n File \"/usr/lib/python2.6/copy.py\", line 323, in _reconstruct\r\n y = callable(*args)\r\n File \"/usr/lib/python2.6/copy_reg.py\", line 93, in __newobj__\r\n return cls.__new__(cls, *args)\r\nTypeError: instancemethod expected at least 2 arguments, got 0\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } ```
https://github.com/ansible/ansible/issues/69308
https://github.com/ansible/ansible/pull/69463
7a15a3a109b47af8b3542c4a6f1b3f25047de058
36d7ba1408bfe8676ab0d35b5f275b94f5177334
2020-05-04T15:39:58Z
python
2020-07-02T04:01:31Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,286
["changelogs/fragments/69286_pop_os_distribution.yml", "lib/ansible/module_utils/facts/system/distribution.py", "test/units/module_utils/test_distribution_version.py"]
Pop!_OS ansible_os_family should be "Debian"
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> Setup module and facts about de Operating System is detecting ansible_os_family as "Pop!_OS". This distribution is based on Ubuntu, so it should be "Debian" the desired result ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/moucho/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` default configuration ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Pop!_OS 20.04 LTS ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> ansible localhost -m setup <!--- Paste example playbooks or commands between quotes below --> <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ansible_os_family: "Debian" ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> ansible_os_family: "Pop!_OS" <!--- Paste verbatim command output between quotes -->
https://github.com/ansible/ansible/issues/69286
https://github.com/ansible/ansible/pull/69294
947fa3bad3833187d0559ffff633137fcf823507
794d269a4d7b02ff0a5d44353d22c86bea1e8d26
2020-05-02T11:53:18Z
python
2020-05-05T16:43:28Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,274
["docs/docsite/rst/user_guide/intro_bsd.rst"]
Clarification for Ansible and BSD Introduction
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY Clarify wording for BSD versus Linux/Unix in the User Guide. > Managing BSD machines is different from managing Linux/Unix machines. > The majority of the core Ansible modules are written for a combination of Linux/Unix machines... > To support a variety of Unix/Linux operating systems... BSD is probably more UNIX-like than Linux is. I find the wording of this section rather confusing. I propose we change the "Linux/Unix" and "Unix/Linux" wording to `UNIX-like`. ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME - [intro_bsd.rst](https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/user_guide/intro_bsd.rst) ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below devel ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below N/A ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> - N/A ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files --> - N/A
https://github.com/ansible/ansible/issues/69274
https://github.com/ansible/ansible/pull/69275
46fea9212513f04ae0d47677f63bfbb4baa3c25e
c52121f4c92d711f6ba11472390fb2581a3ca6a5
2020-05-01T14:06:09Z
python
2020-05-04T21:16:41Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,254
["changelogs/fragments/69253-template-comment-attribute.yml", "lib/ansible/plugins/action/template.py", "lib/ansible/plugins/doc_fragments/template_common.py", "lib/ansible/plugins/lookup/template.py", "test/integration/targets/lookup_template/tasks/main.yml", "test/integration/targets/lookup_template/templates/hello_comment.txt", "test/integration/targets/template/files/custom_comment_string.expected", "test/integration/targets/template/tasks/main.yml", "test/integration/targets/template/templates/custom_comment_string.j2"]
Change comment string in template
<!--- Verify first that your feature was not already discussed on GitHub --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY Add comment_start_string and comment_end_string to template plugin. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME template ##### ADDITIONAL INFORMATION In some situation, we need to change comment behavior of template plugin, for an example macros in Zabbix is like {#MACRO}. <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Render a template with "comment_start_string" set to [# template: src: template.xml.j2 dest: template.xml comment_start_string: "[#" comment_end_string: "#]" ``` <!--- HINT: You can also paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/69254
https://github.com/ansible/ansible/pull/69253
2b463ef19760db5e2e96d15026c41cfa46e2ac6d
3d872fb5e8e43ac8621b7f126a5639dc74df8d8b
2020-04-30T09:18:47Z
python
2021-08-12T13:46:02Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,238
["changelogs/fragments/69288-ansible-test-ansible-doc-json.yml", "test/lib/ansible_test/_internal/sanity/ansible_doc.py"]
ansible-test ansible-doc sanity check should also check that --json works
##### SUMMARY That would have prevented #69031. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME ansible-test
https://github.com/ansible/ansible/issues/69238
https://github.com/ansible/ansible/pull/69288
4794b98f2a9667fc6e964bcb6a36677f6de04475
0b82d4499e2e0076f9efd6d360d4389af0aa2921
2020-04-29T15:46:39Z
python
2020-05-29T15:52:29Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,237
["lib/ansible/modules/yum.py", "test/integration/targets/yum/tasks/yum.yml"]
yum module improperly reports error on successful package removal.
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> The yum module is improperly reporting an error when successfully removing packages, even when the return code is 0, and the output shown clearly indicates success. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> yum ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.3 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> centos-release-7-7.1908.0.el7.centos.x86_64 centos-release-7-8.2003.0.el7.centos.x86_64 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Run the playbook included below, which switches from the CentOS stock kernel to the elrepo mainline kernel. The external vars file is not actually necessary within this playbook, and is part of a playbook template. The sole variable defined within is not used in this sub-playbook. <!--- Paste example playbooks or commands between quotes below --> ```yaml # Migrate to elrepo mainline kernel. --- - hosts: "{{ current_targets }}" become: yes gather_facts: no vars_files: - "external_vars.yaml" tasks: - name: grub_set_default - Set the grub default. command: grub2-set-default 0 - name: set_default_kernel - Set the default kernel in sysconfig. replace: path: /etc/sysconfig/kernel regexp: '^(\s*DEFAULTKERNEL\s*=\s*).*$' replace: \1kernel-ml backup: yes register: changed_sysconfig - name: remake_grub - Re-make the grub configuration, if necessary. command: grub2-mkconfig -o /boot/grub2/grub.cfg when: changed_sysconfig is changed - name: install_elrepo_repository - Install the elrepo repositories. yum: name: http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm state: present register: added_elrepo - name: enable_elrepo_kernel - Enable the elrepo kernel repository, if necessary. command: 'yum-config-manager --enable elrepo-kernel' - name: disable_elrepo - Disable the elrepo general repository, if necessary. command: 'yum-config-manager --disable elrepo' - name: install_kernel_ml - Install kernel-ml package. yum: name: kernel-ml state: latest register: installed_kernel_ml - name: adjust_sysctl - Adjust sysctl settings for elrepo kernel. template: src: ../templates/elrepo_sysctl.conf dest: /etc/sysctl.d/90_aljex.conf owner: root group: root mode: '0644' register: added_sysctl_block - name: 'reboot_server - Reboot the server.' reboot: msg: 'Reboot initiated by Ansible.' connect_timeout: 5 reboot_timeout: 600 pre_reboot_delay: 0 post_reboot_delay: 30 test_command: whoami when: added_sysctl_block is changed - name: erase_old_packages - Erase old, unneeded kernel dev packages. yum: name: - kernel-devel - systemtap - systemtap-devel state: absent register: erased_old_kernel_dev_packages when: installed_kernel_ml is changed - name: remove_stock_kernel - Remove the stock CentOS kernel. yum: name: kernel state: absent when: added_sysctl_block is changed - name: 'reboot_server - Reboot the server.' reboot: msg: 'Reboot initiated by Ansible.' connect_timeout: 5 reboot_timeout: 600 pre_reboot_delay: 0 post_reboot_delay: 30 test_command: whoami when: added_sysctl_block is changed - name: erase_rpms - Erase specific RPMs manually, rather than via yum. command: rpm -e compat-glibc-headers glibc-headers compat-glibc glibc-devel.x86_64 glibc-devel.i686 gcc libtool libquadmath-devel gcc-gfortran gcc-c++ kernel-headers kernel-tools kernel-tools-libs args: warn: false when: erased_old_kernel_dev_packages is changed - name: install_new_kernel_dev_packages yum: name: - compat-glibc-headers - glibc-headers - compat-glibc - glibc-devel.x86_64 - glibc-devel.i686 - gcc - libtool - libquadmath-devel - gcc-gfortran - gcc-c++ - systemtap-devel - systemtap - kernel-ml-headers - kernel-ml-devel - kernel-ml-tools - kernel-ml-tools-libs - python-perf state: latest register: installed_new_kernel_dev_packages - name: 'reboot_server - Reboot the server.' reboot: msg: 'Reboot initiated by Ansible.' connect_timeout: 5 reboot_timeout: 600 pre_reboot_delay: 0 post_reboot_delay: 30 test_command: whoami when: installed_new_kernel_dev_packages is changed ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> All tasks should be completed successfully, including the one which is actually succeeding, but getting flagged as a failure. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The remove_stock_kernel task erroneously gets flagged as a failure: ``` fatal: [REDACTED]: FAILED! => {"changed": false, "changes": {"removed": ["kernel"]}, "msg": "Package 'kernel' couldn't be removed!", "rc": 0, "results": ["Loaded plugins: fastestmirror\nResolving Dependencies\n--> Running transaction check\n---> Package kernel.x86_64 0:3.10.0-1062.el7 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n kernel x86_64 3.10.0-1062.el7 @anaconda 64 M\n\nTransaction Summary\n================================================================================\nRemove 1 Package\n\nInstalled size: 64 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : kernel-3.10.0-1062.el7.x86_64 1/1 \n Verifying : kernel-3.10.0-1062.el7.x86_64 1/1 \n\nRemoved:\n kernel.x86_64 0:3.10.0-1062.el7 ``` The rest of the playbook is never executed due to the 'error'. I have confirmed that the kernel packages are no longer installed, and were removed successfully. <!--- Paste verbatim command output between quotes --> ```paste below ansible-playbook -i inventory -e 'current_targets=testing' playbooks/elrepo_kernel.yaml ```
https://github.com/ansible/ansible/issues/69237
https://github.com/ansible/ansible/pull/69592
f7dfa817ae6542509e0c6eb437ea7bcc51242ca2
4aff87770ebab4e11761f4ec3b42834cad648c09
2020-04-29T13:10:49Z
python
2020-05-26T18:47:39Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,139
["changelogs/fragments/69139_inventory_doc_fix.yml", "docs/docsite/rst/scenario_guides/guide_azure.rst", "docs/docsite/rst/scenario_guides/guide_docker.rst", "docs/docsite/rst/scenario_guides/guide_infoblox.rst", "docs/docsite/rst/scenario_guides/guide_packet.rst", "docs/docsite/rst/user_guide/intro_dynamic_inventory.rst"]
Doc links to Infoblox dynamic inventory files are broken
##### SUMMARY The links to files in the [dynamic inventory section](https://docs.ansible.com/ansible/latest/scenario_guides/guide_infoblox.html#dynamic-inventory-script) on the Infoblox Guide are broken. https://docs.ansible.com/ansible/latest/scenario_guides/guide_infoblox.html#dynamic-inventory-script - infoblox.yaml - infoblox.py ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME Documentation - Infoblox Guide https://docs.ansible.com/ansible/latest/scenario_guides/guide_infoblox.html https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/scenario_guides/guide_infoblox.rst
https://github.com/ansible/ansible/issues/69139
https://github.com/ansible/ansible/pull/69143
bc41dd45141f627b31fbb04443fbaa1ea0c7d1d4
b437236633ad7a9f863042065572166073ef7b99
2020-04-24T01:53:05Z
python
2020-04-29T20:05:39Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,133
["changelogs/fragments/69133-role-install-non-ascii.yml", "lib/ansible/galaxy/role.py", "test/integration/targets/ansible-galaxy/runme.sh"]
ansible-galaxy install throws UnicodeDecodeError exception when filenames have special characters on Python 2.7
##### SUMMARY ansible-galaxy install throws UnicodeDecodeError exception when filenames have special characters on Python 2.7 ``` Traceback (most recent call last): File "/bin/ansible-galaxy", line 123, in <module> exit_code = cli.run() File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 370, in run context.CLIARGS['func']() File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 880, in execute_install installed = role.install() File "/usr/lib/python2.7/site-packages/ansible/galaxy/role.py", line 319, in install role_tar_file.extract(member, self.path) File "/usr/lib64/python2.7/tarfile.py", line 2084, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name)) File "/usr/lib64/python2.7/posixpath.py", line 80, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128) ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME * ansible-galaxy * Python 2.7 ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.7 ``` ##### OS / ENVIRONMENT * Red Hat Enteprise Linux 7 * Python 2.7 *only* ##### STEPS TO REPRODUCE **This issue only happens on Python 2.7** 1. Create a simple role 2. On that role, include some files that with a special character on its name. For example: `anotações-remove.txt`. 3. Run the `asible-galaxy install` command 4. It will throw the `UnicodeDecodeError`. ##### EXPECTED RESULTS `ansible-galaxy` should be able to handle filenames with special characters ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> **strace** ```paste below stat("/usr/lib64/python2.7/posixpath.py", {st_mode=S_IFREG|0644, st_size=13591, ...}) = 0 open("/usr/lib64/python2.7/posixpath.py", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=13591, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=13591, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcea6a2d000 read(3, "\"\"\"Common operations on Posix pa"..., 8192) = 8192 read(3, "See also module 'glob' for expan"..., 4096) = 4096 read(3, "th):\n path = newpath\n"..., 4096) = 1303 read(3, "", 4096) = 0 close(3) = 0 munmap(0x7fcea6a2d000, 4096) = 0 write(1, "the full traceback was:\n\nTraceba"..., 819the full traceback was: Traceback (most recent call last): File "/bin/ansible-galaxy", line 123, in <module> exit_code = cli.run() File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 370, in run context.CLIARGS['func']() File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 880, in execute_install installed = role.install() File "/usr/lib/python2.7/site-packages/ansible/galaxy/role.py", line 319, in install role_tar_file.extract(member, self.path) File "/usr/lib64/python2.7/tarfile.py", line 2084, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name)) File "/usr/lib64/python2.7/posixpath.py", line 80, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128) ``` **added `remote_pdb` to the execution to track the filename** ``` for member in members: # we only extract files, and remove any relative path # bits that might be in the file for security purposes # and drop any containing directory, as mentioned above if member.isreg() or member.issym(): parts = member.name.replace(archive_parent_dir, "", 1).split(os.sep) final_parts = [] for part in parts: if part != '..' and '~' not in part and '$' not in part: final_parts.append(part) member.name = os.path.join(*final_parts) if member.name == 'ansible-postinstall-chef-client/misc/config_chef.sh': from remote_pdb import RemotePdb RemotePdb('127.0.0.1', 4444).set_trace() role_tar_file.extract(member, self.path) ``` Then at the `pdb` console, we can see: ``` (Pdb) member <TarInfo 'ansible-postinstall-chef-client/misc/config_chef.sh' at 0x7f2467a606d0> (Pdb) self.path u'/var/lib/awx/projects/_266__project_postinstall_rhel/roles/requirements_roles/ansible-postinstall-chef-client' (Pdb) role_tar_file.extract(member, self.path) (Pdb) member.name 'ansible-postinstall-chef-client/misc/config_chef.sh' (Pdb) n (Pdb) member.name 'misc/anota\xc3\xa7\xc3\xb5es-remove.txt' (Pdb) str(member.name) 'misc/anota\xc3\xa7\xc3\xb5es-remove.txt' (Pdb) role_tar_file.extract(member, self.path) *** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128) ``` The original filename was `anotações-remove.txt`
https://github.com/ansible/ansible/issues/69133
https://github.com/ansible/ansible/pull/69213
babac66f9cd978b765f58a21c20f3577308f5504
bc41dd45141f627b31fbb04443fbaa1ea0c7d1d4
2020-04-23T17:08:08Z
python
2020-04-28T20:33:44Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,109
["docs/docsite/rst/dev_guide/developing_locally.rst"]
ansible-doc can't find non .py modules
##### SUMMARY I have a ruby module in my modules path that loads and executes correctly in my playbooks. However, `ansible-doc -t module my_module` outputs `[WARNING]: module my_module not found in: /Users/alejandro/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/local/lib/python3.7/site-packages/ansible/modules` ##### ISSUE TYPE - ~Bug Report~ - Documentation Report ##### COMPONENT NAME ansible-doc ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.7 config file = None configured module search path = ['/Users/alejandro/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.4 (default, Sep 7 2019, 18:27:02) [Clang 10.0.1 (clang-1001.0.46.4)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> OS X 10.15.4 ##### STEPS TO REPRODUCE - Add a non-python module to your modules path - Run `ansible-doc -t module <module name>` <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The module documentation is displayed ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below [WARNING]: module my_module not found in: /Users/alejandro/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/local/lib/python3.7/site-packages/ansible/modules ```
https://github.com/ansible/ansible/issues/69109
https://github.com/ansible/ansible/pull/70162
0ef75f65d90e4152bb4105c96678478b6baeee11
da868d9d6037bdce04423f6c75dd5d3d7bf6f300
2020-04-22T20:18:47Z
python
2020-06-19T19:28:02Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,104
["changelogs/fragments/69104-galaxy-cli-templar.yml", "lib/ansible/cli/galaxy.py", "lib/ansible/galaxy/data/default/collection/galaxy.yml.j2", "test/units/cli/test_galaxy.py"]
Cannot use ansible filters with ansible-galaxy
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> I am trying to use ansible filters to template some files in my role skeleton, but ansible-galaxy cannot find them. Only jinja2 filters work. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ansible-galaxy ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.10.0.dev0 config file = None configured module search path = ['/home/nikos/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/nikos/.local/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible python version = 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below none ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Create a file like the one below in your role skeleton: <!--- Paste example playbooks or commands between quotes below --> ```yaml {{ role_name | replace('-', '_') }}_flags: - name: {{ role_name | replace('-', '_') }}_flag id: {{ role_name | to_uuid | truncate(6, True, '', 0) }} ... ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> I would expect `to_uuid` to run fine. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below ERROR! Unexpected Exception, this is probably a bug: no filter named 'to_uuid' the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible-galaxy", line 123, in <module> exit_code = cli.run() File "/home/nikos/.local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 479, in run context.CLIARGS['func']() File "/home/nikos/.local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 882, in execute_init template_env.get_template(src_template).stream(inject_data).dump(dest_file, encoding='utf-8') File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 883, in get_template return self._load_template(name, self.make_globals(globals)) File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 857, in _load_template template = self.loader.load(self, name, globals) File "/usr/lib/python3.8/site-packages/jinja2/loaders.py", line 129, in load code = environment.compile(source, name, filename) File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 638, in compile self.handle_exception(source=source_hint) File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception reraise(*rewrite_traceback_stack(source=source)) File "/usr/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise raise value.with_traceback(tb) File "/home/nikos/Projects/ethical-hacking/EN2720/resources/skeletons/vulnerability-role/defaults/flags.yml.j2", line 8, in template id: {{ role_name | to_uuid | truncate(6, True, '', 0) }} jinja2.exceptions.TemplateAssertionError: no filter named 'to_uuid' ``` `replace` runs fine.
https://github.com/ansible/ansible/issues/69104
https://github.com/ansible/ansible/pull/69106
85bb804cdabad48842b44d85ee0a6a6f18e0c3a3
f27c417fc4eb39f993a0dcf950bce88e5ab0b0ef
2020-04-22T18:37:44Z
python
2020-04-23T15:36:14Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,097
["changelogs/fragments/75269-import_role-support-from-files-templates.yml", "docs/docsite/rst/user_guide/playbooks_reuse.rst", "lib/ansible/playbook/role_include.py", "test/integration/targets/include_import/playbook/test_templated_filenames.yml", "test/integration/targets/include_import/playbook/validate_templated_playbook.yml", "test/integration/targets/include_import/playbook/validate_templated_tasks.yml", "test/integration/targets/include_import/roles/role1/tasks/templated.yml", "test/integration/targets/include_import/runme.sh"]
import_role with extra-vars option
##### SUMMARY variable from extra-vars is not set while import_role is parsed ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME import_role ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/altiire/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ALLOW_WORLD_READABLE_TMPFILES(/etc/ansible/ansible.cfg) = True ``` ##### OS / ENVIRONMENT Debian 10 hosted on GCP compute engine ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```bash ansible-playbook --connection=local --inventory 127.0.0.1, deploy.yml --tags "docker-compose" --extra-vars '{"deployment_name": test,"del_services": [webserver]}' ``` ```yaml --- - name: Create or update a deployment hosts: all tasks: - name: import deploy role with its overriden variables import_role: name: deploy vars_from: "{{ deployment_name }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS run tasks specified by the tags ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below ansible-playbook 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/altiire/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Set default localhost to 127.0.0.1 Parsed 127.0.0.1, inventory source with host_list plugin ERROR! Could not find specified file in role: vars/{{ deployment_name }} ```
https://github.com/ansible/ansible/issues/69097
https://github.com/ansible/ansible/pull/75269
d36116ef1ca2040b9c8f108aaf28b47dd73b4f2c
db3e8f2c1c3d65d9e47f217096e49f7458e7e7f3
2020-04-22T13:37:28Z
python
2021-08-30T14:34:16Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,092
["docs/docsite/rst/dev_guide/developing_plugins.rst", "docs/docsite/rst/plugins/cache.rst", "docs/docsite/rst/plugins/inventory.rst", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst"]
cache plugins vs collections (jsonfile)
##### SUMMARY From @DouglasHeriot in https://github.com/ansible/ansible/issues/69075#issuecomment-617563015 Another issue with the inventory docs: example of enabling caching uses `jsonfile`. https://docs.ansible.com/ansible/devel/plugins/cache.html It says that: > You can use any cache plugin shipped with Ansible to cache inventory, but you cannot use a cache plugin inside a collection Well, `jsonfile` has been moved to the `community.general` collection so no longer works. The only cache plugin part of ansible base is `memory`, which is a bit useless for dynamic inventories. Will there be a way in 2.10 to use cache plugins from a collection? ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME cache ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below 2.10 ```
https://github.com/ansible/ansible/issues/69092
https://github.com/ansible/ansible/pull/69100
f6860a7a89c30a3dce1ab54d4964dc188cba82c2
34458f3569be1b8592e0c433ce09c6add86893da
2020-04-22T09:25:50Z
python
2020-05-05T20:10:57Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,054
["changelogs/fragments/69054-collection-as-str.yaml", "lib/ansible/playbook/collectionsearch.py", "lib/ansible/playbook/task.py", "test/integration/targets/collections/posix.yml", "test/units/playbook/test_collectionsearch.py", "test/units/playbook/test_helpers.py"]
`collections` playbook keyword does not support templating
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> The `collections` keyword does not support templating, contrary to other playbook keywords, such as `module_defaults`. I am trying to specify the collections list at a single place and then just reference them in every playbook instead of bloating each playbook. Alternatively, it would be great if there was a configuration variable, e.g. `ANSIBLE_DEFAULT_COLLECTIONS`, for that purpose. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> collections ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.10.0.dev0 config file = /home/nikos/Projects/ansible-demo/ansible.cfg configured module search path = ['/home/nikos/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/nikos/.local/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible python version = 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below none ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> `play1.yml` ```yaml --- - hosts: localhost gather_facts: no tags: qqq tasks: - set_fact: collections: - community.general ``` `play2.yml` ``` --- - hosts: localhost collections: "{{ collections }}" tasks: - debug: msg: "{{ list1 | union(list2) }}" ``` `playbook.yml` ``` --- - import_playbook: play1.yml - import_playbook: play2.yml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> I would expect the collections list to be resolved. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ansible-playbook 2.10.0.dev0 config file = /home/nikos/Projects/ansible-demo/ansible.cfg configured module search path = ['/home/nikos/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/nikos/.local/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0] Using /home/nikos/Projects/ansible-demo/ansible.cfg as config file setting up inventory plugins host_list declined parsing /home/nikos/Projects/ansible-demo/inventory/inventory.yml as it did not pass its verify_file() method script declined parsing /home/nikos/Projects/ansible-demo/inventory/inventory.yml as it did not pass its verify_file() method Parsed /home/nikos/Projects/ansible-demo/inventory/inventory.yml inventory source with yaml plugin ERROR! Unexpected Exception, this is probably a bug: 'AnsibleUnicode' object has no attribute 'append' the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 123, in <module> exit_code = cli.run() File "/home/nikos/.local/lib/python3.8/site-packages/ansible/cli/playbook.py", line 127, in run results = pbex.run() File "/home/nikos/.local/lib/python3.8/site-packages/ansible/executor/playbook_executor.py", line 91, in run pb = Playbook.load(playbook_path, variable_manager=self._variable_manager, loader=self._loader) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/__init__.py", line 51, in load pb._load_playbook_data(file_name=file_name, variable_manager=variable_manager) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/__init__.py", line 96, in _load_playbook_data pb = PlaybookInclude.load(entry, basedir=self._basedir, variable_manager=variable_manager, loader=self._loader) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/playbook_include.py", line 42, in load return PlaybookInclude().load_data(ds=data, basedir=basedir, variable_manager=variable_manager, loader=loader) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/playbook_include.py", line 72, in load_data pb._load_playbook_data(file_name=file_name, variable_manager=variable_manager, vars=self.vars.copy()) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/__init__.py", line 103, in _load_playbook_data entry_obj = Play.load(entry, variable_manager=variable_manager, loader=self._loader, vars=vars) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/play.py", line 116, in load return p.load_data(data, variable_manager=variable_manager, loader=loader) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/base.py", line 235, in load_data self._attributes[target_name] = method(name, ds[name]) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/collectionsearch.py", line 44, in _load_collections _ensure_default_collection(collection_list=ds) File "/home/nikos/.local/lib/python3.8/site-packages/ansible/playbook/collectionsearch.py", line 31, in _ensure_default_collection collection_list.append('ansible.legacy') AttributeError: 'AnsibleUnicode' object has no attribute 'append' ```
https://github.com/ansible/ansible/issues/69054
https://github.com/ansible/ansible/pull/69081
91bb5af688f27bbb454e5010332416be02db8c69
ff47d3f766f80067b9839f175d1e7d91c8deaf95
2020-04-20T22:22:56Z
python
2020-04-28T15:47:11Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,051
["docs/docsite/rst/user_guide/intro_dynamic_inventory.rst"]
[1/1]Provide a way for users to find the new locations for inventory scripts
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> In releases prior to 2.10, we pointed users directly to the inventory script location in github. Those scripts have now moved, some to their own related collections, may to community.general, where they may move again. It would be good to provide a docs page that lists the inventory scripts and their new locations. <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/69051
https://github.com/ansible/ansible/pull/71638
48f12c14e9ff2b04c49cf6f90a65f4a9ecbb7fc7
2f240f5dd7c6cc99c8c7eed57a58d7106a6fdda5
2020-04-20T18:57:49Z
python
2020-09-04T19:35:08Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,039
["docs/docsite/rst/network/user_guide/network_best_practices_2.5.rst"]
Ansible-vault in INI style inventory file?
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> Hey, this page show INI style hosts file using ansible-vault to encrypt passwords: https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html But this page says that it is not possible to do it like that: https://docs.ansible.com/ansible/latest/network/getting_started/first_inventory.html "This is an example using an extract from a YAML inventory, as the INI format does not support inline vaults" Which one is correct? <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/69039
https://github.com/ansible/ansible/pull/71246
7f97a62d8775b4ea5914550256b3f4c63e7a2b32
a1257d75aa2f874ea2768dd99c4affe8b37a886f
2020-04-20T10:48:07Z
python
2020-08-18T20:34:25Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,036
["lib/ansible/cli/scripts/ansible_connection_cli_stub.py"]
NETCONF broken since v2.9.7/a41f099: Unable to decode JSON from response to get_capabilities(). Received 'None'.
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY Modules using NETCONF (at least the JunOS and Huawei ones) are broken in Ansible v2.9.7. They fail with the following error message: > Unable to decode JSON from response to get_capabilities(). Received 'None'. Ansible v2.9.6 works fine. According to `git-bisect`, the bug was introduced in commit a41f09901bfb2bc5bcd222818c637436dc01a861 by @Qalthos: ``` a41f09901bfb2bc5bcd222818c637436dc01a861 is the first bad commit commit a41f09901bfb2bc5bcd222818c637436dc01a861 Author: Nathaniel Case <[email protected]> Date: Tue Apr 14 21:18:23 2020 -0400 [stable-2.9] Fix missing persistent connection messages (#68496) (#68562) * [stable-2.9] Fix missing persistent connection messages (#68496) * Be more proactive about returning module messages * Move message display to a function, and replace handling already in shutdown(). (cherry picked from commit 5f6427b1fc7449a5c42212013d3f628665701c3d) Co-authored-by: Nathaniel Case <[email protected]> * Add changelog changelogs/fragments/68496-persistent-logging.yaml | 3 +++ .../cli/scripts/ansible_connection_cli_stub.py | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 changelogs/fragments/68496-persistent-logging.yaml ``` I have not tested the `devel` branch, as it fails with a *«the connection plugin 'netconf' was not found»* error message. I presume this is unrelated. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> * ce_config * junos_facts * junos_config (there are probably others) ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```console [:~/git/ansible/ansible] [venv] a41f09901b* ± ansible --version ansible 2.9.6.post0 config file = /home/tore/git/ansible/ansible/ansible.cfg configured module search path = ['/home/tore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/tore/git/ansible/ansible/lib/ansible executable location = /home/tore/git/ansible/ansible/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```console [:~/git/ansible/ansible] [venv] a41f09901b* ± ansible-config dump --only-changed DEFAULT_HOST_LIST(/home/tore/git/ansible/ansible/ansible.cfg) = ['/home/tore/git/ansible/ansible/hosts'] HOST_KEY_CHECKING(/home/tore/git/ansible/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Host running Ansible in the test case below is running Fedora 31. I have also reproduced in an Alpine container with Ansible installed using `pip`. The target device used in test case below is a Juniper EX4200-48T running JunOS 12.3R12-S10, but it seems to impact all JunOS devices in my production environment. ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```console [:~/git/ansible/ansible] [venv] a41f09901b* ± cat ansible.cfg [defaults] host_key_checking = false inventory = ./hosts [:~/git/ansible/ansible] [venv] a41f09901b* ± cat hosts [all] switch ansible_connection=netconf ansible_network_os=junos [:~/git/ansible/ansible] [venv] a41f09901b* ± ansible -m junos_facts all [WARNING]: Platform linux on host switch is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. switch | FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "msg": "Unable to decode JSON from response to get_capabilities(). Received 'None'." } ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ```console [:~/git/ansible/ansible] [venv] a41f09901b* ± git checkout a41f09901b^ Previous HEAD position was a41f09901b [stable-2.9] Fix missing persistent connection messages (#68496) (#68562) HEAD is now at ea4f6e1539 nxos_lacp: updated tests to handle platforms not supporting lacp system mac command (#64074) [:~/git/ansible/ansible] [venv] ea4f6e1539* ± ansible -m junos_facts all [WARNING]: default value for `gather_subset` will be changed to `min` from `!config` v2.11 onwards [WARNING]: Platform linux on host switch is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. switch | SUCCESS => { […] ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```console [:~/git/ansible/ansible] [venv] a41f09901b* ± ansible -vvvv -m junos_facts all ansible 2.9.6.post0 config file = /home/tore/git/ansible/ansible/ansible.cfg configured module search path = ['/home/tore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/tore/git/ansible/ansible/lib/ansible executable location = /home/tore/git/ansible/ansible/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] Using /home/tore/git/ansible/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /home/tore/git/ansible/ansible/hosts as it did not pass its verify_file() method script declined parsing /home/tore/git/ansible/ansible/hosts as it did not pass its verify_file() method auto declined parsing /home/tore/git/ansible/ansible/hosts as it did not pass its verify_file() method Parsed /home/tore/git/ansible/ansible/hosts inventory source with ini plugin Loading callback plugin minimal of type stdout, v2.0 from /home/tore/git/ansible/ansible/lib/ansible/plugins/callback/minimal.py META: ran handlers <switch> attempting to start connection <switch> using connection plugin netconf <switch> local domain socket does not exist, starting it <switch> control socket path is /home/tore/.ansible/pc/de1ee28bd4 <switch> local domain socket listeners started successfully <switch> loaded netconf plugin junos from path /home/tore/git/ansible/ansible/lib/ansible/plugins/netconf/junos.py for network_os junos <switch> <switch> local domain socket path is /home/tore/.ansible/pc/de1ee28bd4 <switch> ESTABLISH LOCAL CONNECTION FOR USER: tore <switch> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h `"&& mkdir /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206 && echo ansible-tmp-1587376485.1662843-256918-170184907858206="` echo /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206 `" ) && sleep 0' <switch> Attempting python interpreter discovery <switch> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' <switch> Python interpreter discovery fallback (pipelining support required for extended interpreter discovery) Using module file /home/tore/git/ansible/ansible/lib/ansible/modules/network/junos/junos_facts.py <switch> PUT /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/tmpronsk3k0 TO /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206/AnsiballZ_junos_facts.py <switch> EXEC /bin/sh -c 'chmod u+x /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206/ /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206/AnsiballZ_junos_facts.py && sleep 0' <switch> EXEC /bin/sh -c '/usr/bin/python /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206/AnsiballZ_junos_facts.py && sleep 0' <switch> EXEC /bin/sh -c 'rm -f -r /home/tore/.ansible/tmp/ansible-local-256914roxp0s8h/ansible-tmp-1587376485.1662843-256918-170184907858206/ > /dev/null 2>&1 && sleep 0' The full traceback is: File "/tmp/ansible_junos_facts_payload_hd535j_j/ansible_junos_facts_payload.zip/ansible/module_utils/network/common/network.py", line 229, in get_capabilities capabilities = Connection(module._socket_path).get_capabilities() File "/tmp/ansible_junos_facts_payload_hd535j_j/ansible_junos_facts_payload.zip/ansible/module_utils/connection.py", line 179, in __rpc__ response = self._exec_jsonrpc(name, *args, **kwargs) File "/tmp/ansible_junos_facts_payload_hd535j_j/ansible_junos_facts_payload.zip/ansible/module_utils/connection.py", line 161, in _exec_jsonrpc "Unable to decode JSON from response to {0}({1}). Received '{2}'.".format(name, params, out) [WARNING]: Platform linux on host switch is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. switch | FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "invocation": { "module_args": { "config_format": "text", "gather_network_resources": null, "gather_subset": [ "!config" ], "host": null, "password": null, "port": null, "provider": null, "ssh_keyfile": null, "timeout": null, "transport": null, "username": null } }, "msg": "Unable to decode JSON from response to get_capabilities(). Received 'None'." } ```
https://github.com/ansible/ansible/issues/69036
https://github.com/ansible/ansible/pull/69147
91d02e1c1fb16ac0fbb079334f9d3c239e57034a
9217aeeac1fadbbfd89714cb987bba08e2f41003
2020-04-20T10:05:50Z
python
2020-04-27T09:58:57Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,034
["changelogs/fragments/75002-apt_min_version.yml", "lib/ansible/modules/apt.py", "test/integration/targets/apt/tasks/repo.yml", "test/integration/targets/setup_deb_repo/files/package_specs/stable/foo-1.0.0", "test/integration/targets/setup_deb_repo/files/package_specs/stable/foo-1.0.1", "test/integration/targets/setup_deb_repo/files/package_specs/stable/foobar-1.0.0", "test/integration/targets/setup_deb_repo/files/package_specs/stable/foobar-1.0.1", "test/integration/targets/setup_deb_repo/files/package_specs/testing/foo-2.0.0", "test/integration/targets/setup_deb_repo/files/package_specs/testing/foo-2.0.1", "test/integration/targets/setup_deb_repo/tasks/main.yml"]
Apt module to support minimum version specification ">="
<!--- Verify first that your feature was not already discussed on GitHub --> <!--- Complete *all* sections as described, this form is processed automatically --> It's a reopening of the closed issue #21449. ##### SUMMARY <!--- Describe the new feature/improvement briefly below --> I would like to be able to specify the minimal version of a package to be installed instead of a (partial) exact match. For example, I would like to have elasticsearch present on my system in a version equal or greater to 7.6.1 because feature X is present since this version: - if elasticsearch is not installed: install the latest elasticsearch package - if elasticsearch is installed in version 7.6.0: install the latest elasticsearch package (7.6.2) - if elasticsearch is installed in version 7.6.1: do nothing, return ok - if elasticsearch is installed in version 7.6.2 or more: do nothing, return ok ```yml - name: Install Elasticsearch. package: name: elasticsearch>=7.6.1 state: present ``` ##### ACTUAL RESULTS ``` fatal: [poc-elasticsearch]: FAILED! => {"changed": false, "msg": "No package matching 'elasticsearch>' is available"} ``` ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> [apt module](https://docs.ansible.com/ansible/latest/modules/apt_module.html) ##### ADDITIONAL INFORMATION <!--- Describe how the feature would be used, why it is needed and what it would solve --> Answer to https://github.com/ansible/ansible/issues/21449#issuecomment-280158405 > Does apt itself support these? If not, I'm not certain we want to add it as that would require us to parse and compare dpkg version strings. If it does, then I could see us taking a PR to use the apt python bindings to do this... Someone would have to reconcile this with the current usage of the "=" to mean fnmatching, though. Apt python bindings support the comparison of versions with `apt_pkg.version_compare`: <!--- HINT: You can also paste gist.github.com links for larger files --> ```py import apt import apt_pkg cache = apt.Cache() pkg = cache['elasticsearch'] installed = pkg.installed.version candidate = pkg.versions[0].version vc = apt_pkg.version_compare(installed,candidate) if vc > 0: print(f'{installed} version > {candidate} version') elif vc == 0: print(f'{installed} version = {candidate} version') elif vc < 0 and pkg.is_upgradable: print(f'{installed} version < {candidate} version') ``` Documentation: https://apt-team.pages.debian.net/python-apt/library/apt_pkg.html?highlight=version_compare#apt_pkg.version_compare
https://github.com/ansible/ansible/issues/69034
https://github.com/ansible/ansible/pull/75002
a5bea8b2f51ba9d9c001f713ee7e658cf1a96385
4a62c4e3e44b01a904aa86e9b87206a24bd41fbc
2020-04-20T07:29:38Z
python
2022-01-11T14:41:12Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,021
["lib/ansible/plugins/action/__init__.py"]
Documentation: The warning that `become` show, point to a non-existing page.
##### SUMMARY The warning that `become` show, point to a non-existing page. The reference: https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user Should be: https://docs.ansible.com/ansible/user_guide/become.html#risks-of-becoming-an-unprivileged-user ``` msg: |- Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chown: changing ownership of '/var/tmp/ansible-tmp-1587201990.1515293-106086999273646/': Operation not permitted chown: changing ownership of '/var/tmp/ansible-tmp-1587201990.1515293-106086999273646/AnsiballZ_postgresql_db.py': Operation not permitted }). For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME become ##### ANSIBLE VERSION ``` ansible 2.9.6 config file = None configured module search path = ['/home/robertdb/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION ``` # empty. ``` ##### OS / ENVIRONMENT Controller: Fedora 31 Managed node: Ubuntu 19 ##### STEPS TO REPRODUCE I use [this](https://github.com/robertdebock/ansible-role-postgres/blob/master/tasks/main.yml#L70) role on Ubuntu 19. (Using [this](https://github.com/robertdebock/ansible-tester) code. ##### EXPECTED RESULTS The chapter is found immediately. ##### ACTUAL RESULTS The documentation page loads (good), but does not jump to the right chapter.
https://github.com/ansible/ansible/issues/69021
https://github.com/ansible/ansible/pull/69026
648b3d43d3c3c8a64660d72cdd08dd6dad02e13a
fd8b8742730b692a9e715a6a7a922607dcef8821
2020-04-18T11:39:45Z
python
2020-04-18T12:52:29Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,014
["changelogs/fragments/pull_fix_limit.yml", "lib/ansible/cli/pull.py"]
ansible-pull gives spurious inventory warning
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY When ansible-pull creates the ansible command to pull the repo, assuming no additional command line arguments have been supplied, it constructs both an --inventory argument and a --limit argument. The --inventory argument has only 'localhost,' while the --limit argument has 'localhost,<hostname>,127.0.0.1'. This is guaranteed to produce the warning: [WARNING]: Could not match supplied host pattern, ignoring: <hostname> ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-pull ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/mwallace/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 9.2.1 20191008] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Linux ccm-lc-fin-304 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> sudo ansible-pull -U <git repo url> <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> I expect this to run with no warnings ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> I get the warning: [WARNING]: Could not match supplied host pattern, ignoring: <hostname> <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/69014
https://github.com/ansible/ansible/pull/76965
6d2d476113b3a26e46c9917e213f09494fbc0a13
d4c9c103e2884dd88876909ffe8fda2fc776811a
2020-04-17T21:07:09Z
python
2022-02-07T21:10:30Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,009
["changelogs/fragments/69458-updated-galaxy-cli-help.yaml", "lib/ansible/cli/__init__.py"]
CLI help for 'ansible-galaxy' not properly updated for 'collection' subcommand
##### SUMMARY With the introduction of `Collection` mechanism using the `ansible-galaxy` CLI, the command and sub command help texts should be reflecting the new feature. The CLI currently validates the `collection` sub-command but the help text is still saying `role` is the only valid sub-command. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME `ansible-galaxy` ##### ANSIBLE VERSION ``` ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/dvercill/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/dvercill/.local/lib/python3.8/site-packages/ansible executable location = /home/dvercill/.local/bin/ansible python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] ``` ##### CONFIGURATION N/A ##### OS / ENVIRONMENT Fedora Workstation 32 beta ##### STEPS TO REPRODUCE ``` $ ansible-galaxy doesnotexist usage: ansible-galaxy role [-h] ROLE_ACTION ... ansible-galaxy role: error: argument ROLE_ACTION: invalid choice: 'doesnotexist' (choose from 'init', 'remove', 'delete', 'list', 'search', 'import', 'setup', 'login', 'info', 'install') ```
https://github.com/ansible/ansible/issues/69009
https://github.com/ansible/ansible/pull/69458
4dd0f41270a734e307984e3e80b19d5e96069c28
187de7a8aaaf125c12b8a440c5362166eff30358
2020-04-17T17:28:25Z
python
2020-05-28T14:38:48Z
closed
ansible/ansible
https://github.com/ansible/ansible
69,004
["changelogs/fragments/70449-facts-add-dst-timezone.yml", "lib/ansible/module_utils/facts/system/date_time.py", "test/units/module_utils/facts/tests_date_time.py"]
`ansible_date_time.tz` gives an invalid Timezone `CEST`
##### SUMMARY `ansible_date_time.tz` gives an invalid Timezone `CEST`. In [lib/ansible/module_utils/facts/system/date_time.py, line 55]( https://github.com/ansible/ansible/blob/d3cab602a5b4578d5623bc5d4322681294abf2c2/lib/ansible/module_utils/facts/system/date_time.py#L55), `tz` should be assigned a valid Timezone name. Actually it is assigned `time.strftime("%Z")`, which returns `CEST` when the current Timezone is `CET` and it is summer time. It should be assigned `time.tzname[0]` (see [Python documentation](https://docs.python.org/3/library/time.html#time.tzname)). Proposal : ```python tz, _ = time.tzname date_time_facts['tz'] = tz ``` References : * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones * https://www.iana.org/time-zones * `ls -l /usr/share/zoneinfo` * `date`, executed on April 17, at 14:57 GMT (16:57 in Paris) : * `TZ=Europe/Paris date` prints *Fri Apr 17 **16:57:03 CEST** 2020* 👍 * `TZ=CET date` prints *Fri Apr 17 **16:57:03 CEST** 2020* 👍 * `TZ=CEST date` prints *Fri Apr 17 **14:57:03 CEST** 2020* 👎 * `TZ=FOO date` prints *Fri Apr 17 14:57:03 **FOO** 2020* 👎 ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME facts ##### ANSIBLE VERSION ``` ansible 2.9.5 config file = None configured module search path = [u'/home/ubuntu/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/ubuntu/venv/local/lib/python2.7/site-packages/ansible executable location = /home/ubuntu/venv/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ``` ##### CONFIGURATION N/A ##### OS / ENVIRONMENT N/A ##### STEPS TO REPRODUCE * Configure the target host Timezone to be `Europe/Paris` * Set system time to sometime in the *summer* * Run `ansible -m setup -a filter=ansible_date_time` ##### EXPECTED RESULTS ``` localhost | SUCCESS => { "ansible_facts": { "ansible_date_time": { ... "tz": "CET", ... } }, "changed": false } ``` ##### ACTUAL RESULTS ``` localhost | SUCCESS => { "ansible_facts": { "ansible_date_time": { ... "tz": "CEST", ... } }, "changed": false } ```
https://github.com/ansible/ansible/issues/69004
https://github.com/ansible/ansible/pull/70449
e22e103cdf8edc56ff7d9b848a58f94f1471a263
fe86a93482ca3d90b1a19112827bd98eb71ea4e1
2020-04-17T15:00:47Z
python
2020-07-14T16:22:51Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,962
["docs/docsite/rst/user_guide/intro_getting_started.rst"]
Include demo/example repo options in getting started page
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> Ansible provides a couple of good resources for learning/experimenting with Ansible. Add these to getting started: https://github.com/ansible/product-demos https://katacoda.com/rhel-labs <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68962
https://github.com/ansible/ansible/pull/71102
7c60dadb9a3832dee0014113a337bc10fa1088c0
5f8b45a70e8e4e378cdafde6cc6c39f32af39e65
2020-04-15T14:45:36Z
python
2020-08-07T21:09:19Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,950
["changelogs/fragments/inv_json_sort_types_fix.yml", "lib/ansible/cli/inventory.py", "test/integration/targets/inventory/inv_with_int.yml", "test/integration/targets/inventory/runme.sh"]
ERROR! Unexpected Exception, this is probably a bug: '<' not supported between instances of 'AnsibleUnicode' and 'int'
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> `ansible-inventory` fails with an unexpected exception if it encounters a dict in host vars that contains both numbers and letters as keys. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> inventory ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below [:~/git/ansible/ansible] [venv] devel* ± ansible --version [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ansible 2.10.0.dev0 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/tore/git/ansible/ansible/lib/ansible executable location = /home/tore/git/ansible/ansible/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below [:~/git/ansible/ansible] [venv] devel* ± ansible-config dump --only-changed [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ``` [:~/git/ansible/ansible] [venv] devel* ± lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: Fedora Description: Fedora release 31 (Thirty One) Release: 31 Codename: ThirtyOne ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```console $ echo test > inventory $ mkdir host_vars $ echo -e 'x:\n a: 1\n 0: 1' > host_vars/test.yml $ ansible-inventory -i inventory --list ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Output like: ```json { "_meta": { "hostvars": { "test": { "x": { "a": 1, "0": 1 } } } }, "all": { "children": [ "ungrouped" ] }, "ungrouped": { "hosts": [ "test" ] } } ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ansible-inventory 2.10.0.dev0 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/tore/git/ansible/ansible/lib/ansible executable location = /home/tore/git/ansible/ansible/bin/ansible-inventory python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] Using /etc/ansible/ansible.cfg as config file host_list declined parsing /home/tore/git/ansible/ansible/inventory as it did not pass its verify_file() method script declined parsing /home/tore/git/ansible/ansible/inventory as it did not pass its verify_file() method auto declined parsing /home/tore/git/ansible/ansible/inventory as it did not pass its verify_file() method Parsed /home/tore/git/ansible/ansible/inventory inventory source with ini plugin ERROR! Unexpected Exception, this is probably a bug: '<' not supported between instances of 'int' and 'AnsibleUnicode' the full traceback was: Traceback (most recent call last): File "/home/tore/git/ansible/ansible/bin/ansible-inventory", line 123, in <module> exit_code = cli.run() File "/home/tore/git/ansible/ansible/lib/ansible/cli/inventory.py", line 151, in run results = self.dump(results) File "/home/tore/git/ansible/ansible/lib/ansible/cli/inventory.py", line 185, in dump results = json.dumps(stuff, cls=AnsibleJSONEncoder, sort_keys=True, indent=4, preprocess_unsafe=True) File "/usr/lib64/python3.7/json/__init__.py", line 238, in dumps **kw).encode(obj) File "/usr/lib64/python3.7/json/encoder.py", line 201, in encode chunks = list(chunks) File "/usr/lib64/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib64/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib64/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib64/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks [Previous line repeated 1 more time] File "/usr/lib64/python3.7/json/encoder.py", line 353, in _iterencode_dict items = sorted(dct.items(), key=lambda kv: kv[0]) TypeError: '<' not supported between instances of 'int' and 'AnsibleUnicode' ```
https://github.com/ansible/ansible/issues/68950
https://github.com/ansible/ansible/pull/73726
65140279573dd1f91b1134b7057711c46bac06ba
527bff6b79081b942c0ac9d0b1e306b99ffa81a6
2020-04-14T19:03:56Z
python
2021-03-03T19:24:50Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,920
["changelogs/fragments/75845-ansible-galaxy-support-collection-skeleton.yml", "lib/ansible/cli/galaxy.py", "lib/ansible/config/base.yml"]
Add support for GALAXY_COLLECTION_SKELETON
##### SUMMARY When I run `ansible-galaxy [type] init`, I would like to be able to use my own configured 'skeleton' to init that content. For Ansible roles, when running `ansible-galaxy role init myrole`, I can configure a [`GALAXY_ROLE_SKELETON`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#galaxy-role-skeleton) in my `ansible.cfg`, and the init command will use that skeleton as the source for the new role. For Ansible collections, currently there's a bug (https://github.com/ansible/ansible/issues/66255) that causes collections to use that skeleton if its set (which can lead to some confusion)—but once that bug's fixed, there's no way to specify a skeleton for a collection. So this feature request is to add a new configuration option `GALAXY_COLLECTION_SKELETON` (environment variable `ANSIBLE_GALAXY_COLLECTION_SKELETON`) which allows a collection skeleton to be specified. Note: the docs for `GALAXY_ROLE_SKELETON` currently state: > Role or collection skeleton directory to use as a template for the `init` action in `ansible-galaxy`, same as `--role-skeleton`. Therefore that would need adjusting too, if the previously mentioned bug doesn't fix that. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME ansible-galaxy init ##### ADDITIONAL INFORMATION N/A
https://github.com/ansible/ansible/issues/68920
https://github.com/ansible/ansible/pull/75845
3ef8782b90e0b5ff6441630d3451b37fcacc3571
827981c7dd3bb9d8a9d1e571a0cea6f51fbb7e65
2020-04-13T15:52:01Z
python
2021-09-30T21:13:15Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,897
["changelogs/fragments/inventory_doc_fix.yml", "docs/docsite/rst/user_guide/intro_dynamic_inventory.rst"]
ec2.py URL is having 404 response.
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> **The link given to refer ec2.py file for dynamic inventory is no more reachable and gives 404 error.** https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/cobbler.py <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> ec2.py ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68897
https://github.com/ansible/ansible/pull/68905
c7997a77d27a87b05ff81b4bac0c796654f9bb73
6493a190f6eaeb33cb916f5206553507263c4bf8
2020-04-12T12:39:16Z
python
2020-04-15T20:29:55Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,836
["changelogs/fragments/with_seq_example.yml", "lib/ansible/plugins/lookup/sequence.py"]
The `sequence` documentation is missing clear examples
##### SUMMARY The [`with_sequence` documentation](https://docs.ansible.com/ansible/latest/plugins/lookup/sequence.html) does not have enough examples to clarify. The "Edit on GitHub" link is also broken, so it's hard to fix. 1. How to use non-inline variables: How do you write this: ```yaml - name: Example debug: msg: "{{ item }}" with_sequence: start=1 end=10 ``` Like this?: ```yaml - name: Example debug: msg: "{{ item }}" with_sequence: start: 1 end: 10 ``` (The second example doesn't actually work. What is the correct syntax without using one-liner equals statements?) 2. Show an example like this: ```yaml - name: Example debug: msg: "{{ item }}" with_sequence: start=1 end="{{ number_of_things }}" ``` (It references a variable for the `end` parameter.) ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME sequence
https://github.com/ansible/ansible/issues/68836
https://github.com/ansible/ansible/pull/69369
1f1d6e5aec525fca9e18d0439d171d6ae8b3a247
5709173c321b4f8ac1ae637b3e739f077c7d9d54
2020-04-10T00:56:45Z
python
2020-07-01T20:12:48Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,819
["changelogs/fragments/ansible-test-test-no-tests.yml", "test/lib/ansible_test/_internal/delegation.py"]
sanity test with docker exiting abruptly if tests dir is not present in collections
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> tar: /home/abehl/.ansible/collections/ansible_collections/opensvc/cluster/tests: Cannot open: No such file or directory tar: Error is not recoverable: exiting now ERROR: Command "tar oxzf /tmp/ansible-result-YfvJZN.tgz -C /home/abehl/.ansible/collections/ansible_collections/opensvc/cluster/tests" returned exit status 2. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ansible-test ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6.post0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/abehl/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/abehl/work/src/anshul_ansible/new_ansible/ansible/lib/ansible executable location = /home/abehl/work/src/anshul_ansible/new_ansible/ansible/bin/ansible python version = 2.7.17 (default, Oct 21 2019, 17:20:57) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Fedora release 30 (Thirty) ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Run `ansible-test sanity --docker` on a collection without tests/ dir <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Should not exit abruptly ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below tar: /home/abehl/.ansible/collections/ansible_collections/opensvc/cluster/tests: Cannot open: No such file or directory tar: Error is not recoverable: exiting now ERROR: Command "tar oxzf /tmp/ansible-result-YfvJZN.tgz -C /home/abehl/.ansible/collections/ansible_collections/opensvc/cluster/tests" returned exit status 2. ```
https://github.com/ansible/ansible/issues/68819
https://github.com/ansible/ansible/pull/68828
d86d20a378ef10fbcdff5174f58e4c94246f8aab
a0951721306cfdbfd7deb9b0e9c929c148552591
2020-04-09T16:13:51Z
python
2020-04-10T01:12:21Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,775
["changelogs/fragments/69531_user_password_expire.yml", "lib/ansible/modules/user.py", "test/integration/targets/user/tasks/main.yml", "test/integration/targets/user/tasks/test_expires_min_max.yml"]
The user module cannot set password expiration
##### SUMMARY Hi, I would like to change the 'Password expires:' value ( like chage -M -1 username ) when creating a user. Is it possible to add a new parameter for example password_expire_max and password_expire_min where this value could be set? ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME user_module - https://docs.ansible.com/ansible/latest/modules/user_module.html
https://github.com/ansible/ansible/issues/68775
https://github.com/ansible/ansible/pull/69531
bf10bb370ba1c813f7d8d9eea73c3b50b1c19c19
4344607d7d105e264a0edce19f63041158ae9cc7
2020-04-08T15:36:22Z
python
2021-02-09T21:41:15Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,771
["lib/ansible/plugins/doc_fragments/url_windows.py"]
Ansible.ModuleUtils.WebRequest clears authorization header on redirects
##### SUMMARY `win_get_url` clears the authorization header on redirections ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME win_get_url ##### ANSIBLE VERSION ``` ansible 2.9.6 config file = None configured module search path = ['/Users/.../.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.9.6_1/libexec/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.2 (default, Mar 11 2020, 00:28:52) [Clang 11.0.0 (clang-1100.0.33.17)] ``` ##### CONFIGURATION ``` DEFAULT_STDOUT_CALLBACK(env: ANSIBLE_STDOUT_CALLBACK) = debug ``` ##### OS / ENVIRONMENT Host: Mac OS 10.14.6 Target host: Windows 2012 R2 ##### STEPS TO REPRODUCE **Use case**: Using `win_get_url` on the target host to download a file from a repository. Basic authentication is used on the repository, but it also uses redirection. 1. `win_get_url` makes the inititial request, passing the correct authorization header. 2. The repository responds with a 302 redirect and the redirect location 3. The redirect url is followed by the underlying framework, but the authorization header is not passed through. When using `get_url`, the redirect is followed and the authorization is passed through the redirect. This behaviour is by design in HttpWebRequest. See note at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.allowautoredirect?view=netframework-4.8 > The Authorization header is cleared on auto-redirects and HttpWebRequest automatically tries to re-authenticate to the redirected location. In practice, this means that an application can't put custom authentication information into the Authorization header if it is possible to encounter redirection. Instead, the application must implement and register a custom authentication module Though this behaviour is by design in the .NET Framework, the behaviour of `win_get_url` differs from `get_url`. Example use: ```yaml win_get_url: # compare with get_url url: https://example.com/redirectTo/1 dest: 'C:\temp\somefile.exe' url_username: some_user url_password: some_pass force_basic_auth: true ``` ##### EXPECTED RESULTS Same behavour as `get_url`: Redirects are followed, and authorization header is passed in redirect request. File is downloaded from the url. I suspect clearing authorization headers is a good idea as the default behavior of both ansible modules (`get_url` and `win_get_url`). This is probably for security reasons where the redirect is to a malicious site. However, it would be better if: 1. The difference in `win_get_url` was explicitly documented (good) 2. The behaviour was consistent between `get_url` and `win_get_url` (better) 3. Module could be extended to choose if the auth header should be passed on when redirecting to the same host (or some safe url list) (best) ##### ACTUAL RESULTS Output from sample run: ``` The full traceback is: The remote server returned an error: (401) Unauthorized. At line:427 char:13 + $web_response = $Request.GetResponse() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], WebException + FullyQualifiedErrorId : WebException ScriptStackTrace: at Invoke-WithWebRequest, <No file>: line 427 at Invoke-DownloadFile, <No file>: line 194 at <ScriptBlock>, <No file>: line 243 fatal: [54.206.58.45]: FAILED! => { "changed": false, "dest": "C:\\temp\\somefile.exe", "elapsed": 0.062484599999999994, "invocation": { "module_args": { "checksum": null, "checksum_algorithm": "sha1", "checksum_url": null, "client_cert": null, "client_cert_password": null, "dest": "C:\\temp\\somefile.exe", "follow_redirects": "safe", "force": true, "force_basic_auth": true, "headers": { "Authorization": "Basic eWVhaDpyaWdodAo=" }, "http_agent": "ansible-httpget", "maximum_redirection": 50, "method": null, "proxy_password": null, "proxy_url": null, "proxy_use_default_credential": false, "proxy_username": null, "timeout": 30, "url": "https://example.com/redirectTo/1", "url_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "url_username": "some_user", "use_default_credential": false, "use_proxy": true, "validate_certs": true } }, "status_code": 401, "url": "https://example.com/redirectTo/1" } MSG: Error downloading 'https://example.com/redirectTo/1' to 'C:\temp\somefile.exe': The remote server returned an error: (401) Unauthorized. ```
https://github.com/ansible/ansible/issues/68771
https://github.com/ansible/ansible/pull/68791
43270332e7d10b297ff9d61cbeb129fcefa6f9db
780067e6a1afc29a1c8b6e763b0e3148815a0a8d
2020-04-08T12:17:14Z
python
2020-04-09T15:46:54Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,770
["changelogs/fragments/68770_cache_adjudicator_flush.yml", "docs/docsite/rst/dev_guide/developing_inventory.rst", "docs/docsite/rst/porting_guides/porting_guide_base_2.11.rst", "lib/ansible/plugins/cache/__init__.py", "test/units/plugins/cache/test_cache.py"]
CachePluginAdjudicator should call plugin.flush() when flushing cache
##### SUMMARY The current implementation of CachePluginAdjudicator is unable to flush the cache without loading everything in memory using `load_whole_cache`. Iterating over the plugins cache keys would avoid that step. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible.plugins.cache CachePluginAdjudicator ##### ANSIBLE VERSION ``` ansible 2.9.6 config file = /home/harm/dev/closso-ansible/ansible.cfg configured module search path = ['/home/harm/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/harm/.virtualenvs/ansible/lib/python3.7/site-packages/ansible executable location = /home/harm/.virtualenvs/ansible/bin/ansible python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0] ``` ##### CONFIGURATION ``` CACHE_PLUGIN(/home/harm/dev/closso-ansible/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/home/harm/dev/closso-ansible/ansible.cfg) = ./cache/fact/ CACHE_PLUGIN_TIMEOUT(/home/harm/dev/closso-ansible/ansible.cfg) = 86400 DEFAULT_CALLBACK_PLUGIN_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/plugins/callback', '/usr/share/ansible/plugins/callback'] DEFAULT_CALLBACK_WHITELIST(/home/harm/dev/closso-ansible/ansible.cfg) = ['profile_tasks'] DEFAULT_FILTER_PLUGIN_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/plugins/filter', '/usr/share/ansible/plugins/filter'] DEFAULT_GATHERING(/home/harm/dev/closso-ansible/ansible.cfg) = smart DEFAULT_HOST_LIST(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/netbox_inventory.yml'] DEFAULT_LOOKUP_PLUGIN_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/plugins/lookup', '/usr/share/ansible/plugins/lookup'] DEFAULT_ROLES_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/roles'] DEFAULT_VARS_PLUGIN_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/plugins/vars', '/usr/share/ansible/plugins/vars'] DOC_FRAGMENT_PLUGIN_PATH(/home/harm/dev/closso-ansible/ansible.cfg) = ['/home/harm/dev/closso-ansible/plugins/doc_fragments', '/usr/share/ansible/plugins/doc_fragments'] HOST_KEY_CHECKING(/home/harm/dev/closso-ansible/ansible.cfg) = False INVENTORY_CACHE_ENABLED(/home/harm/dev/closso-ansible/ansible.cfg) = True INVENTORY_ENABLED(/home/harm/dev/closso-ansible/ansible.cfg) = ['host_list', 'script', 'yaml', 'ini', 'netbox'] TRANSFORM_INVALID_GROUP_CHARS(/home/harm/dev/closso-ansible/ansible.cfg) = never USE_PERSISTENT_CONNECTIONS(/home/harm/dev/closso-ansible/ansible.cfg) = True ``` ##### STEPS TO REPRODUCE ``` >>> cache = CachePluginAdjudicator('jsonfile', _uri='./cache/netbox') >>> cache._plugin.keys() ['netbox_b42bfs_d14a8', 'netbox_b42bfs_81f3c'] >>> cache.keys() dict_keys([]) >>> cache.flush() >>> cache._plugin.keys() ['netbox_b42bfs_d14a8', 'netbox_b42bfs_81f3c'] >>> cache.keys() dict_keys([]) >>> cache.load_whole_cache() >>> cache.keys() dict_keys(['netbox_b42bfs_d14a8', 'netbox_b42bfs_81f3c']) >>> cache.flush() >>> cache.keys() dict_keys([]) >>> cache._plugin.keys() [] ``` ##### EXPECTED RESULTS Cache should be flushed without loading everything in memory. ##### ACTUAL RESULTS `cache.flush()` does nothing.
https://github.com/ansible/ansible/issues/68770
https://github.com/ansible/ansible/pull/70987
8313cc8fb1a6f879328b5178f790086a2ba580b2
7f62a9d7b5164e474da3c933798ac5a41d9394f6
2020-04-08T11:35:50Z
python
2020-08-03T22:16:15Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,704
["changelogs/fragments/68723-force-static-collections.yaml", "lib/ansible/playbook/collectionsearch.py", "test/units/playbook/test_collectionsearch.py"]
Using a variable in FQCN of the collection called inside the playbook does not find the roles
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> While trying to include roles from collections in a dynamic manner, I used a variable as name for the collection name (eg. my_namespace.{{ collection_var_name }}.role1 ). By doing so, the role is not found. Replacing the collection_var_name with the collection name correctly i can use the role without issues. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> Collections ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.6 configured module search path = [u'/Users/alexandruvinogradov/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /Users/alexandruvinogradov/Library/Python/2.7/lib/python/site-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.16 (default, Jan 27 2020, 04:46:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` no modification ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> MacOS Mojave 10.14.6 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> Use the playbook below to try to execute role1 from a pre-created collection. Call the collection by passing the var collection_name to match the collection name. ansible-playbook playbook.yml -e'{"collection_name":"name"}' ``` --- - hosts: all collections: - namespace.{{ collection_name }} tasks: - import_role: name: role1 ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The expected behaviour would be that the role from the collection passed as variable gets executed. If i were to replace the variable in the playbook with the actual passed name, the role gets executed correctly. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The role is not recognized as part of the collection. <!--- Paste verbatim command output between quotes --> ``` ERROR! the role 'role1' was not found The error appears to be in 'playbook.yml': line 7, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - import_role: name: role1 ^ here ```
https://github.com/ansible/ansible/issues/68704
https://github.com/ansible/ansible/pull/68723
d91658ec0c8434c82c3ef98bfe9eb4e1027a43a3
18a66e291dad71128a32d662aa808213acefe0e9
2020-04-06T07:33:40Z
python
2020-04-13T16:53:05Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,699
["changelogs/fragments/68699-prevent-templating-all-vars-when-copying-context.yml", "lib/ansible/template/__init__.py", "lib/ansible/template/template.py", "test/integration/targets/template/runme.sh", "test/integration/targets/template/templates/unused_vars_include.j2", "test/integration/targets/template/templates/unused_vars_template.j2", "test/integration/targets/template/unused_vars_include.yml"]
Jinja2 template with set and and include results in undefined variable on CentOS 8 (Ansible with Python 3)
##### SUMMARY Executing the same playbook that uses a template with a `set` and `include` results in an `undefined variable` error on CentOS 8, but it works on CentOS 7. It looks like that on CentOS 8 all variables in scope will be evaluated, so also the once that are not used, which is the reason for this error. On both operating systems the latest available version standard repo is used. This means on CentOS 8, Ansible with Python 3 and a newer Jinja2 version is used. See for details the version section. There is also a workaround, see the latest section. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME template ##### ANSIBLE VERSION * On CentOS 8 (with the issue) ```paste below ansible 2.9.5 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)] ``` Jinja2 version: `python3-jinja2-2.10.1-2.el8_0.noarch` * On CentOS 7 (where it works as expected) ```paste below ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/mark/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` Jinja2 version: `python-jinja2-2.7.2-4.el7.noarch` Also with version 2.9.5 it works as expected on CentOS 7. ##### CONFIGURATION `ansible-config dump --only-changed` has no output on both systems ##### OS / ENVIRONMENT * OS with the issue: `CentOS Linux release 8.1.1911 (Core)`` * OS with the exepcted result: `CentOS Linux release 7.7.1908 (Core)` ##### STEPS TO REPRODUCE Create the following files: `playbook.yml`: ```yaml --- - hosts: localhost become: False gather_facts: False vars: test_var: Test not_used_variable: "{{ var_that_does_not_exists }}" tasks: - name: Test template debug: msg: "{{ lookup('template', 'test.j2') }}" ``` `templates/test.j2`: ``` {% set var_set_in_template=test_var %} {% include "includes/test-include.j2" %} ``` `templates/includes/test-include.j2`: ``` {{ var_set_in_template }} ``` Execute the playbook using: `ansible-playbook playbook.yml` For a complete set of files, see also: https://github.com/m-a-r-k-e/ansible-template-issue ##### EXPECTED RESULTS The variable is correctly printed (this is the output when running on CentOS 7): ``` [mark ansible-template-issue](develop)$ ansible-playbook playbook.yml [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [localhost] *************************************************************** TASK [Test template] *********************************************************** ok: [localhost] => { "msg": "Test\n" } PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ``` ##### ACTUAL RESULTS An error because the template tries to resolve the not used variable: `not_used_variable: "{{ var_that_does_not_exists }}"`. This is the result when running on CentOS 8: <!--- Paste verbatim command output between quotes --> ```paste below [mark ansible-template-issue](develop)$ ansible-playbook playbook.yml -vvvv ansible-playbook 2.9.5 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method Parsed /etc/ansible/hosts inventory source with ini plugin [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3.6/site-packages/ansible/plugins/callback/default.py PLAYBOOK: playbook.yml ****************************************************************************************************************** Positional arguments: playbook.yml verbosity: 4 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/etc/ansible/hosts',) forks: 5 1 plays in playbook.yml PLAY [localhost] ************************************************************************************************************************ META: ran handlers TASK [Test template] ******************************************************************************************************************** task path: /home/mark/GIT/ansible-template-issue/playbook.yml:9 File lookup using /home/mark/GIT/ansible-template-issue/templates/test.j2 as file fatal: [localhost]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'var_that_does_not_exists' is undefined\n\nThe error appears to be in '/home/mark/GIT/ansible-template-issue/playbook.yml': line 9, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Test template\n ^ here\n" } PLAY RECAP ****************************************************************************************************************************** localhost ``` ##### Workaround There is a workaround, so the output is the same on CentOS 7 and CentOS 8. In that case change the template by removing the `set` and replace this with a `for` loop that contains only a single element: `templates/test.j2`: ``` #jinja2: lstrip_blocks: True {% for var_set_in_template in [ test_var ] %} {% include "includes/test-include.j2" %} {% endfor %} ``` For the complete working example, see: https://github.com/m-a-r-k-e/ansible-template-issue/tree/solution-centos8
https://github.com/ansible/ansible/issues/68699
https://github.com/ansible/ansible/pull/68749
7d5177d6a06154c19ed6b400bdb2b17beeee9606
ff1ba39c8af0bb1e28932823814bbdd5aa45cd37
2020-04-05T13:48:38Z
python
2020-04-14T08:27:02Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,684
["changelogs/fragments/76124-hostname-debianstrategy.yml", "lib/ansible/modules/hostname.py", "test/integration/targets/hostname/tasks/Debian.yml", "test/integration/targets/hostname/tasks/main.yml", "test/integration/targets/hostname/tasks/test_normal.yml", "test/units/modules/test_hostname.py"]
Cannot set hostname on ansible 2.9.6 with use=debian
##### SUMMARY Cannot set hostname on 2.9.6 ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME [hostname](https://docs.ansible.com/ansible/latest/modules/hostname_module.html) ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` $ ansible --version ansible 2.9.6 config file = /home/porn/test/ansible/ansible.cfg configured module search path = ['/home/porn/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/porn/.local/lib/python3.6/site-packages/ansible executable location = /home/porn/.local/bin/ansible python version = 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` $ ansible-config dump --only-changed ANSIBLE_PIPELINING(/home/porn/test/ansible/ansible.cfg) = True ANSIBLE_SSH_CONTROL_PATH(/home/porn/test/ansible/ansible.cfg) = /tmp/%%h-%%p-%%r DEFAULT_CALLBACK_WHITELIST(/home/porn/test/ansible/ansible.cfg) = ['profile_tasks'] DEFAULT_GATHERING(/home/porn/test/ansible/ansible.cfg) = smart DEFAULT_HOST_LIST(/home/porn/test/ansible/ansible.cfg) = ['/home/porn/test/ansible/hosts'] DEFAULT_REMOTE_PORT(/home/porn/test/ansible/ansible.cfg) = 29010 DEFAULT_REMOTE_USER(/home/porn/test/ansible/ansible.cfg) = ubuntu HOST_KEY_CHECKING(/home/porn/test/ansible/ansible.cfg) = False INTERPRETER_PYTHON(/home/porn/test/ansible/ansible.cfg) = /usr/bin/python3 ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ``` $ uname -a Linux pornmachine 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> try to set hostname on another ubuntu 18.04 <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Base setup hosts: workers tasks: - hostname: name: "worker" use: debian become: yes ``` ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The hostname should be set ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The command fails <!--- Paste verbatim command output between quotes --> ``` TASK [hostname] ***************************************************************************************************************************************************************************** task path: /home/porn/test/ansible/worker.yml:5 Friday 03 April 2020 20:27:27 +0200 (0:00:01.969) 0:00:02.022 ********** Using module file /home/porn/.local/lib/python3.6/site-packages/ansible/modules/system/hostname.py Pipelining is enabled. <35.183.134.118> ESTABLISH SSH CONNECTION FOR USER: ubuntu <35.183.134.118> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=29010 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ubuntu"' -o ConnectTimeout=10 -o ControlPath=/tmp/%h-%p-%r 35.183.134.118 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qzpktirbekasjjznnyfijducgvmqtgzq ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"'' Escalation succeeded <35.183.134.118> (1, b'\n{"msg": "Command failed rc=1, out=, err=Unknown operation worker\\n", "failed": true, "invocation": {"module_args": {"name": "worker", "use": "debian"}}}\n', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /home/porn/.ssh/config\r\ndebug1: /home/porn/.ssh/config line 15: Applying options for 35.*\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 11218\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n') <35.183.134.118> Failed to connect to the host via ssh: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /home/porn/.ssh/config debug1: /home/porn/.ssh/config line 15: Applying options for 35.* debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: auto-mux: Trying existing master debug2: fd 3 setting O_NONBLOCK debug2: mux_client_hello_exchange: master version 4 debug3: mux_client_forwards: request forwardings: 0 local, 0 remote debug3: mux_client_request_session: entering debug3: mux_client_request_alive: entering debug3: mux_client_request_alive: done pid = 11218 debug3: mux_client_request_session: session request sent debug1: mux_client_request_session: master session id: 2 debug3: mux_client_read_packet: read header failed: Broken pipe debug2: Received exit status from master 1 fatal: [35.183.134.118]: FAILED! => { "changed": false, "invocation": { "module_args": { "name": "worker", "use": "debian" } }, "msg": "Command failed rc=1, out=, err=Unknown operation worker\n" } ``` The only workaround is ansible downgrade to 2.9.5 :(
https://github.com/ansible/ansible/issues/68684
https://github.com/ansible/ansible/pull/76929
522f9d1050baa3bdea4f3f9df5772c9acdc96f73
b1457329731b485910515dbd1c9753205767d81c
2020-04-03T18:54:50Z
python
2022-02-09T15:26:42Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,656
["changelogs/fragments/no_target_syslog-var.yaml", "lib/ansible/config/base.yml", "lib/ansible/plugins/action/__init__.py"]
Ansible.Basic - do no output even log if DEFAULT_NO_TARGET_SYSLOG is set
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> For reasons unknown, messages appear in the Windows Event Log (Event Viewer) when module win_stat has been used. It is unclear if this is being caused by a particular module argument. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> win_stat ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6 config file = None configured module search path = ['/Users/michaelsmoody/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.9.6_1/libexec/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.2 (default, Mar 11 2020, 00:28:52) [Clang 11.0.0 (clang-1100.0.33.17)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below No Output ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> macOS 10.14.6 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Use of win_stat in a playbook <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Get a directory via win_stat win_stat: path: "E:\\TheDirectoryPath" register: current_deploy_directory ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> win_stat module is used without logging into Event Log (unless verbose flags enabled) Interestingly, I'd love to know what actually causes this so I could cause certain modules TO cause events in the Event Log for audit purposes. But this one isn't expected. So, fix, but explain what the process is to make this happen. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Log in the Application log, level Information, source Ansible ``` Level Date and Time Source Event ID Task Category Information 4/3/2020 12:00:01 AM Ansible 0 None "win_stat - Invoked with: get_checksum: True checksum_algorithm: sha1 follow: False get_md5: False path: E:\TheDirectoryPath" ``` <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/68656
https://github.com/ansible/ansible/pull/68971
702949e64c4eec7f40a920ea72a2f47e28ca53b3
de6b047fc3e6a9d23921574de55813fa25657d4b
2020-04-03T05:30:56Z
python
2020-04-16T10:25:09Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,637
["lib/ansible/config/routing.yml", "lib/ansible/modules/packaging/os/apt_repo.py", "test/sanity/ignore.txt"]
apt_repo should be moved to a collection
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> I've talked about this with @gundalow in https://github.com/theforeman/foreman-ansible-modules/pull/591#issuecomment-561712408 but it seems to be forgotten. `apt_repo` is for managing ALT Linux repositories, unlike `apt_repository` which is for Debian repositories. As we aim to only support Debian and Red Hat family OSes in "base", `apt_repo` should be moved to a collection. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> apt_repo ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/68637
https://github.com/ansible/ansible/pull/68641
ae1cd27b575a759e9d2477042fc5dbbb3275cd84
40d9650f20133cd6942990df205300fec802511f
2020-04-02T13:37:22Z
python
2020-04-02T16:06:12Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,612
["changelogs/fragments/68612_iptables.yml", "lib/ansible/modules/iptables.py"]
iptables module broken
##### SUMMARY Module triggers an unsupported syntax with iptables executable. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME iptables ##### ANSIBLE VERSION ``` ansible 2.9.6 config file = -SNIP-/ansible.cfg configured module search path = ['-SNIP-/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/Cellar/ansible/2.9.6_1/libexec/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.2 (default, Mar 11 2020, 15:23:03) [Clang 11.0.0 (clang-1100.0.33.17)] ``` ##### CONFIGURATION ``` DEFAULT_BECOME = True HOST_KEY_CHECKING = False INTERPRETER_PYTHON = auto_silent ``` ##### OS / ENVIRONMENT OS Ansible is executed in: MacOSX Destination OS: SUSE Linux Enterprise Server 12 SP5 ##### STEPS TO REPRODUCE Play: ```yaml - name: create ajp port whitelist iptables: action: insert chain: INPUT comment: See Ticket123 destination_port: '8009' policy: ACCEPT protocol: tcp source: '172.18.0.2' ``` ##### EXPECTED RESULTS Not to receive an error. ##### ACTUAL RESULTS When executed, this doesn't work: ``` failed: [-SNIP-] (item=172.18.0.2) => {"ansible_loop_var": "item", "changed": false, "cmd": "/usr/sbin/iptables -t filter -L INPUT -p tcp -s 172.18.0.2 --destination-port 8009 -m comment --comment 'See Ticket123'", "item": "172.18.0.2", "msg": "iptables v1.4.21: Illegal option `-s' with this command\n\nTry `iptables -h' or 'iptables --help' for more information.", "rc": 2, "stderr": "iptables v1.4.21: Illegal option `-s' with this command\n\nTry `iptables -h' or 'iptables --help' for more information.\n", "stderr_lines": ["iptables v1.4.21: Illegal option `-s' with this command", "", "Try `iptables -h' or 'iptables --help' for more information."], "stdout": "", "stdout_lines": []} ```
https://github.com/ansible/ansible/issues/68612
https://github.com/ansible/ansible/pull/69152
11398aac09efbd3d039854ab6c3816b7b266479e
82b74f7fd770027ea5c903f57056f4742cac90e3
2020-04-01T11:34:34Z
python
2021-01-27T20:24:53Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,605
["changelogs/fragments/68605-ansible-error-orig-exc-context.yml", "lib/ansible/errors/__init__.py"]
import_task swallows AnsibleParserError
##### SUMMARY A malformed list item in an included task file yields a cryptic message ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib/ansible/cli/scripts/ansible_cli_stub.py ##### ANSIBLE VERSION Confirmed as of c888035e ``` ansible 2.10.0.dev0 config file = None configured module search path = ['/usr/share/ansible/plugins/modules'] ansible python module location = /proj/ansible/ansible/venv/lib/python3.7/site-packages/ansible_base-2.10.0.dev0-py3.7.egg/ansible executable location = /proj/ansible/ansible/venv/bin/ansible python version = 3.7.7 (default, Mar 11 2020, 11:44:20) [GCC 9.2.1 20191008] ``` ##### CONFIGURATION ##### OS / ENVIRONMENT ##### STEPS TO REPRODUCE * bug.yml ```yaml --- - oops ``` * pb.yml ```yaml - hosts: all gather_facts: no tasks: - include_tasks: bug.yml ``` ##### EXPECTED RESULTS ```console $ ansible-playbook -i localhost, -c local pb.yml ERROR! Traceback (most recent call last): File "/proj/ansible/ansible/lib/ansible/playbook/block.py", line 130, in _load_block use_handlers=self._use_handlers, File "/proj/ansible/ansible/lib/ansible/playbook/helpers.py", line 106, in load_list_of_tasks raise AnsibleAssertionError('The ds (%s) should be a dict but was a %s' % (ds, type(ds))) ansible.errors.AnsibleAssertionError: The ds (['oops']) should be a dict but was a <class 'list'> ``` or something similar, because just _eating_ the `AnsibleParserError` makes tracking down the erroneous list item harder than necessary ##### ACTUAL RESULTS ```console $ ansible-playbook -i localhost, -c local -vvvvvvvvv pb.yml ansible-playbook 2.10.0.dev0 config file = None configured module search path = ['/usr/share/ansible/plugins/modules'] ansible python module location = /proj/ansible/ansible/lib/ansible executable location = /proj/ansible/ansible/venv/bin/ansible-playbook python version = 3.7.7 (default, Mar 11 2020, 11:44:20) [GCC 9.2.1 20191008] No config file found; using defaults setting up inventory plugins Set default localhost to localhost Parsed localhost, inventory source with host_list plugin statically imported: /proj/ansible/ansible/bug.yml ERROR! A malformed block was encountered while loading a block ``` and the same outcome when run with `ANSIBLE_DEBUG=1` which was especially surprising ```console $ ANSIBLE_DEBUG=1 ansible-playbook -i localhost, -c local -vvvvvvvvv pb.yml ## snip 22539 1585707905.71204: Loading BecomeModule 'sudo' from /proj/ansible/ansible/lib/ansible/plugins/become/sudo.py (found_in_cache=False, class_only=True) 22539 1585707905.71232: Loading data from /proj/ansible/ansible/bug0.yml 22539 1585707905.71591: in VariableManager get_vars() 22539 1585707905.71621: done with get_vars() 22539 1585707905.71634: Loading data from /proj/ansible/ansible/bug00.yml statically imported: /proj/ansible/ansible/bug.yml 22539 1585707905.71686: RUNNING CLEANUP ERROR! A malformed block was encountered while loading a block ```
https://github.com/ansible/ansible/issues/68605
https://github.com/ansible/ansible/pull/72677
fb092a82a1a013fd38a37b90b305fc9a8fa11a13
46198cf80aa6001d058bc32c00e242d161715dad
2020-04-01T02:31:15Z
python
2020-11-19T19:40:22Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,569
["changelogs/fragments/68569-start-at-fix.yaml", "lib/ansible/executor/play_iterator.py", "test/integration/targets/play_iterator/aliases", "test/integration/targets/play_iterator/playbook.yml", "test/integration/targets/play_iterator/runme.sh"]
--start-at fails when name used but left blank
##### SUMMARY --start-at fails for all tasks following a task where name is blank ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME --start-at flag ##### ANSIBLE VERSION ``` ansible 2.7.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/data01/ansible/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` ANSIBLE_NOCOWS(/etc/ansible/ansible.cfg) = True ANSIBLE_SSH_ARGS(/etc/ansible/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=60s ANSIBLE_SSH_CONTROL_PATH(/etc/ansible/ansible.cfg) = %(directory)s/ansible-ssh-%%h-%%p-%%r CACHE_PLUGIN(/etc/ansible/ansible.cfg) = jsonfile CACHE_PLUGIN_CONNECTION(/etc/ansible/ansible.cfg) = /data01/ansible/facts DEFAULT_ACTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/action'] DEFAULT_BECOME_ASK_PASS(/etc/ansible/ansible.cfg) = True DEFAULT_BECOME_METHOD(/etc/ansible/ansible.cfg) = su DEFAULT_BECOME_USER(/etc/ansible/ansible.cfg) = root DEFAULT_CACHE_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/cache'] DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/callback'] DEFAULT_CONNECTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/connection'] DEFAULT_FILTER_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/filter'] DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 5 DEFAULT_GATHERING(/etc/ansible/ansible.cfg) = smart DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/data01/ansible/inventories'] DEFAULT_INVENTORY_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/inventory'] DEFAULT_LOAD_CALLBACK_PLUGINS(/etc/ansible/ansible.cfg) = True DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log DEFAULT_LOOKUP_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/lookup'] DEFAULT_MANAGED_STR(/etc/ansible/ansible.cfg) = Ansible managed: modified on %Y-%m-%d %H:%M:%S DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/data01/ansible/modules'] DEFAULT_POLL_INTERVAL(/etc/ansible/ansible.cfg) = 15 DEFAULT_PRIVATE_KEY_FILE(/etc/ansible/ansible.cfg) = /home/ansible/.ssh/<redacted> DEFAULT_REMOTE_USER(/etc/ansible/ansible.cfg) = <redacted> DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/data01/ansible/roles'] DEFAULT_SCP_IF_SSH(/etc/ansible/ansible.cfg) = True DEFAULT_STRATEGY_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/strategy'] DEFAULT_TEST_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/test'] DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 30 DEFAULT_TRANSPORT(/etc/ansible/ansible.cfg) = smart DEFAULT_VARS_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/vars'] DISPLAY_SKIPPED_HOSTS(/etc/ansible/ansible.cfg) = True ERROR_ON_MISSING_HANDLER(/etc/ansible/ansible.cfg) = True HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Create 2 named tasks but do not fill in a name for the first task. When the playbook is run with this flag it will fail --start-at="bug : task 2" <!--- Paste example playbooks or commands between quotes below --> ``` - name: debug: msg: foo - name: task 2 debug: msg: bar ``` ##### EXPECTED RESULTS Expect step 1 to be skipped and continue from step 2 ``` ansible-playbook 2.7.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/data01/ansible/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible-playbook python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] Using /etc/ansible/ansible.cfg as config file SU password: PLAYBOOK: test.yml *************************************************************************************************************** 1 plays in test.yml PLAY [<redacted>] **************************************************************************************** TASK [bug : task 2] ************************************************************************************************************** task path: roles/bug/tasks/main.yml:5 ok: [<redacted>] => { "msg": "bar" } META: ran handlers META: ran handlers PLAY RECAP *********************************************************************************************************************** <redacted> : ok=1 changed=0 unreachable=0 failed=0 ``` ##### ACTUAL RESULTS ansible reports a likely bug when failing to find "task 2" ``` ansible-playbook test.yml -e "target=<redacted>" -vvv --start-at="bug : task 2" --step ansible-playbook 2.7.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/data01/ansible/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible-playbook python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] Using /etc/ansible/ansible.cfg as config file SU password: Parsed <redacted>, inventory source with host_list plugin PLAYBOOK: test.yml *************************************************************************************************************** 1 plays in test.yml PLAY [<redacted>] **************************************************************************************** ERROR! Unexpected Exception, this is probably a bug: expected string or buffer the full traceback was: Traceback (most recent call last): File "/bin/ansible-playbook", line 118, in <module> exit_code = cli.run() File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 122, in run results = pbex.run() File "/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 156, in run result = self._tqm.run(play=play) File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 263, in run start_at_done=self._start_at_done, File "/usr/lib/python2.7/site-packages/ansible/executor/play_iterator.py", line 218, in __init__ if task.name == play_context.start_at_task or fnmatch.fnmatch(task.name, play_context.start_at_task) or \ File "/usr/lib64/python2.7/fnmatch.py", line 43, in fnmatch return fnmatchcase(name, pat) File "/usr/lib64/python2.7/fnmatch.py", line 79, in fnmatchcase return _cache[pat].match(name) is not None TypeError: expected string or buffer ```
https://github.com/ansible/ansible/issues/68569
https://github.com/ansible/ansible/pull/68951
cb389f6c31287487c24b590a20d9a1061abf81fe
af44bd4ddded532af522d84cbc4cb878aca56f13
2020-03-30T19:38:53Z
python
2020-04-21T07:39:17Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,532
["changelogs/fragments/gf_fix.yml", "lib/ansible/plugins/action/gather_facts.py", "test/integration/targets/gathering_facts/aliases", "test/integration/targets/gathering_facts/library/facts_one", "test/integration/targets/gathering_facts/library/facts_two", "test/integration/targets/gathering_facts/one_two.json", "test/integration/targets/gathering_facts/runme.sh", "test/integration/targets/gathering_facts/two_one.json", "test/integration/targets/gathering_facts/verify_merge_facts.yml", "test/sanity/ignore.txt"]
gather_facts does not combine results of multiple fact modules
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> When executing the gather_facts module with a list of fact gathering modules the results aren't combined. Instead, the result from one fact gathering module replaces all others. This is caused by gather_facts calling `combine_vars()` https://github.com/ansible/ansible/blob/0f5a63f1b99e586f86932907c49b1e8877128957/lib/ansible/plugins/action/gather_facts.py#L49-L55 which defaults to doing a replacement instead of a merge: https://github.com/ansible/ansible/blob/0f5a63f1b99e586f86932907c49b1e8877128957/lib/ansible/utils/vars.py#L80-L92 AFAICS, in the context of this gather_facts module the replacement strategy doesn't make any sense. Thus I suggest to replace the `combine_vars()` calls in `gather_facts.py` with `merge_hash()`. See also @bcoca's gather_facts pull request #49399 which introduced the possibility to configure multiple fact gathering modules and execute them in parallel. Sure, one can kind of work around this by also setting `ANSIBLE_HASH_BEHAVIOUR=merge` but then you get the merge behavior everywhere, i.e. also when overwriting variables during playbook execution etc. So that isn't a real work around, at all. Again, I can't see a use case where the default replace behavior would be useful when using `gather_facts` since _the_ goal of configuring multiple facts modules is to have their results combined. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> gather_facts ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6 config file = /home/gms/program/mailserver/ansible.cfg configured module search path = ['/home/gms/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> - Fedora 31 - ansible-2.9.6-1.fc31.noarch ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ``` ANSIBLE_FACTS_MODULES=setup,package_facts ansible all -i myhost, -m gather_facts --tree facts >/dev/null 2>&1 grep '"ansible_distribution":\|"packages":' -o facts -r ANSIBLE_FACTS_MODULES=package_facts,setup ansible all -i myhost, -m gather_facts --tree facts >/dev/null 2>&1 grep '"ansible_distribution":\|"packages":' -o facts -r ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> I expect that the created json facts file contains the facts both from the `setup` and `package_facts` facts gathering modules, i.e. the above two greps should yield output similar to: ``` facts/myhost:"ansible_distribution": facts/myhost:"packages": facts/myhost:"ansible_distribution": facts/myhost:"packages": ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Note how I only get the results from the `package_facts` fact gathering module - even when I reverse the list of fact gathering modules. The results from the `setup` gathering module are missing. <!--- Paste verbatim command output between quotes --> ```paste below facts/myhost:"packages": facts/myhost:"packages": ``` AFAICS, the result that the order of the FACTS_MODULES doesn't make a difference is caused by the fact that they are executed in parallel, by default.
https://github.com/ansible/ansible/issues/68532
https://github.com/ansible/ansible/pull/68987
fe941a4045861bfe87340381e7992bcecdbc0291
9281148b623d4e2e8302778d91af3e84ab9579a9
2020-03-28T19:58:57Z
python
2020-05-20T22:53:37Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,530
["lib/ansible/cli/doc.py", "lib/ansible/constants.py", "lib/ansible/utils/collection_loader.py"]
ansible-test sanity failing with "No module named 'jinja2'"
##### SUMMARY In the Kubernetes collection's CI tests, the sanity check, which uses `ansible-test sanity --docker -v --color --python 3.6`, started failing with the following error: ``` ERROR: Command "importer.py" returned exit status 1. >>> Standard Error Traceback (most recent call last): File "/root/ansible/ansible_collections/community/kubernetes/tests/output/.tmp/sanity/import/minimal-py36/bin/importer.py", line 447, in <module> main() File "/root/ansible/ansible_collections/community/kubernetes/tests/output/.tmp/sanity/import/minimal-py36/bin/importer.py", line 51, in main from ansible.utils.collection_loader import AnsibleCollectionLoader File "/root/ansible/lib/ansible/utils/collection_loader.py", line 15, in <module> from ansible import constants as C File "/root/ansible/lib/ansible/constants.py", line 12, in <module> from jinja2 import Template ModuleNotFoundError: No module named 'jinja2' ``` Nothing in the collection has changed in the past week, and no runs failed until this morning's CI run, so it seems something committed to ansible/ansible `devel` has caused this failure. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-test ##### ANSIBLE VERSION devel (as of this morning) ##### CONFIGURATION N/A - defaults ##### OS / ENVIRONMENT Linux ##### STEPS TO REPRODUCE 1. Clone kubernetes collection repo 2. Install Ansible @ devel 3. Run `ansible-test sanity --docker -v --color --python 3.6` ##### EXPECTED RESULTS Tests should pass, as they have for the past few weeks. ##### ACTUAL RESULTS Test fail, with the message in this issue's summary.
https://github.com/ansible/ansible/issues/68530
https://github.com/ansible/ansible/pull/68531
0f5a63f1b99e586f86932907c49b1e8877128957
7777189954347e98310ac8d067f3141b81cf1c07
2020-03-28T15:23:03Z
python
2020-03-28T18:21:08Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,529
["changelogs/fragments/73665-fixes-ansible-console.yml", "lib/ansible/cli/console.py"]
ansible-console catches `KeyboardInterrupt` silently
--- name: ✨ Feature request about: Suggest an idea for this project --- <!--- Verify first that your feature was not already discussed on GitHub --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Describe the new feature/improvement briefly below --> Leave an exit message when catching `KeyboardInterrupt` in ansible/lib/console ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> `ansible/lib/ansible/cli/console.py` ##### ADDITIONAL INFORMATION <!--- Describe how the feature would be used, why it is needed and what it would solve --> https://github.com/ansible/ansible/blob/0f5a63f1b99e586f86932907c49b1e8877128957/lib/ansible/cli/console.py#L112 `ansible-console` catches KeyboardInterrupt silently. This may confuse new users, and a simple 'Exiting REPL!' before that `self.do_exit` would probably be helpful for someone trying the REPL for the first time. I'll admit I was confused and didn't even realize I was back in my normal shell at first. Alternatively, if this behavior could be made configurable with something as simple as a class or instance attribute or something that would amazing. <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can also paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68529
https://github.com/ansible/ansible/pull/73665
d0e991e892eb45c9de172fbb3987f9ae32ddfc3f
e7e3c12ad27b80686ebae5d43f85442299386565
2020-03-28T14:18:53Z
python
2021-03-01T19:04:59Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,528
["changelogs/fragments/win-web-request-no_proxy.yaml", "lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1", "test/integration/targets/module_utils_Ansible.ModuleUtils.WebRequest/library/web_request_test.ps1"]
Ansible.ModuleUtils.WebRequest: cannot ignore proxy
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> It seems not possible to run `win_get_url` without proxy. Based on the documentation, my expectation was that setting the parameter `use_proxy` to 'no' should ignore the default IE proxy, and run without proxy if `proxy_url` is not set at the same time. However, this is not working, even with `use_proxy: no`, the IE proxy is still being used. Looking into the actual source code at https://github.com/ansible/ansible/blob/e5995a2eed08c0a0bf4797ae8a38aefd160b0f0a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1#L252, I believe the issue is this: ``` if (-not $UseProxy) { $proxy = $null } elseif ($ProxyUrl) { $proxy = New-Object -TypeName System.Net.WebProxy -ArgumentList $ProxyUrl, $true } else { $proxy = $web_request.Proxy } # $web_request.Proxy may return $null for a FTP web request. We only set the credentials if we have an actual # proxy to work with, otherwise just ignore the credentials property. if ($null -ne $proxy) { [...] $web_request.Proxy = $proxy } ``` In other words, when `use_proxy: no`, the `$proxy` variable will first (correctly) be set to `$null`, but that value is never written to `$web_request.Proxy`, and thus never used. Instead the default value is used. Bringing `$web_request.Proxy = $proxy` outside of that last `if block` fixes things for me, but might break other things. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1 ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible --version ansible 2.9.1 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> NA ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Seeing this on Windows 10. ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - hosts: all vars: # set unexisting proxy proxy: unexisting download_url: <local url that can be reached without proxy> tasks: - name: Configure IE to use explicit proxy host with port and without auto detection win_inet_proxy: auto_detect: no proxy: "{{ proxy }}" - name: Download package without proxy win_get_url: url: "{{ download_url }}" dest: C:\Users\ansible\test.jpg use_proxy: no ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Playbook should succesfully download test file without trying to connect to the unexisting proxy. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Playbook fails, as it tries to connect to the unexisting proxy.
https://github.com/ansible/ansible/issues/68528
https://github.com/ansible/ansible/pull/68603
e785bdaa5b08c8426694e6348c52c562d38147cd
ae1cd27b575a759e9d2477042fc5dbbb3275cd84
2020-03-28T13:26:56Z
python
2020-04-01T21:17:50Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,515
["changelogs/fragments/68515_include_role_vars_from.yml", "lib/ansible/playbook/role_include.py", "test/integration/targets/include_import/role/test_include_role.yml", "test/integration/targets/include_import/role/test_include_role_vars_from.yml", "test/integration/targets/include_import/runme.sh"]
ERROR! Unexpected Exception, this is probably a bug: 'AnsibleSequence' object has no attribute 'rfind'
#### SUMMARY I'm trying to loop over a role with one variable being changed at each play but I get the following error message ``` ERROR! Unexpected Exception, this is probably a bug: 'AnsibleSequence' object has no attribute 'rfind' ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME include_role ##### ANSIBLE VERSION ``` ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/altiire/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] ``` ##### CONFIGURATION ``` ALLOW_WORLD_READABLE_TMPFILES(/etc/ansible/ansible.cfg) = True ``` ##### OS / ENVIRONMENT OS Debian 10 Hosted on GCP ##### STEPS TO REPRODUCE ```yaml - name: Update the deployments hosts: all remote_user: "{{ remote_user }}" vars_files: - vars/common.yml vars: - deployment_template_path: "{{ deployment_path }}/deployment_template" tasks: - include_role: name: deploy vars_from: - "./vars/deployment_{{ item }}.yml" vars: - current_deployment_path: "{{ deployment_path }}/{{ item }}" - deployment_name: "{{ item }}" loop: "{{ existing_deployments.stdout_lines }}" ``` ##### EXPECTED RESULTS run deploy role for each existing deployment ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below ansible-playbook -vvv --connection=local --inventory 127.0.0.1, scale_down_es.yml -K --ask-vault-pass --extra-vars "swarm=false" ansible-playbook 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/altiire/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] Using /etc/ansible/ansible.cfg as config file BECOME password: Vault password: Parsed 127.0.0.1, inventory source with host_list plugin Read vars_file 'vars/common.yml' Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/scale-down-es/tasks/prepare.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/scale-down-es/tasks/scale_down.yml Read vars_file 'vars/common.yml' Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/git.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/backend.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/frontend.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/sftp.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/elasticsearch.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/docker.yml Read vars_file 'vars/common.yml' statically imported: /home/altiire/deployer/roles/prepare/tasks/reconnect.yml ERROR! Unexpected Exception, this is probably a bug: 'AnsibleSequence' object has no attribute 'rfind' the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 123, in <module> exit_code = cli.run() File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 127, in run results = pbex.run() File "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 91, in run pb = Playbook.load(playbook_path, variable_manager=self._variable_manager, loader=self._loader) File "/usr/lib/python2.7/dist-packages/ansible/playbook/__init__.py", line 51, in load pb._load_playbook_data(file_name=file_name, variable_manager=variable_manager) File "/usr/lib/python2.7/dist-packages/ansible/playbook/__init__.py", line 103, in _load_playbook_data entry_obj = Play.load(entry, variable_manager=variable_manager, loader=self._loader, vars=vars) File "/usr/lib/python2.7/dist-packages/ansible/playbook/play.py", line 116, in load return p.load_data(data, variable_manager=variable_manager, loader=loader) File "/usr/lib/python2.7/dist-packages/ansible/playbook/base.py", line 235, in load_data self._attributes[target_name] = method(name, ds[name]) File "/usr/lib/python2.7/dist-packages/ansible/playbook/play.py", line 147, in _load_tasks return load_list_of_blocks(ds=ds, play=self, variable_manager=self._variable_manager, loader=self._loader) File "/usr/lib/python2.7/dist-packages/ansible/playbook/helpers.py", line 78, in load_list_of_blocks loader=loader, File "/usr/lib/python2.7/dist-packages/ansible/playbook/block.py", line 94, in load return b.load_data(data, variable_manager=variable_manager, loader=loader) File "/usr/lib/python2.7/dist-packages/ansible/playbook/base.py", line 235, in load_data self._attributes[target_name] = method(name, ds[name]) File "/usr/lib/python2.7/dist-packages/ansible/playbook/block.py", line 130, in _load_block use_handlers=self._use_handlers, File "/usr/lib/python2.7/dist-packages/ansible/playbook/helpers.py", line 325, in load_list_of_tasks loader=loader, File "/usr/lib/python2.7/dist-packages/ansible/playbook/role_include.py", line 140, in load ir._from_files[from_key] = basename(ir.args.get(key)) File "/usr/lib/python2.7/posixpath.py", line 114, in basename i = p.rfind('/') + 1 AttributeError: 'AnsibleSequence' object has no attribute 'rfind' make: *** [Makefile:45: scale-down-es] Error 250 ```
https://github.com/ansible/ansible/issues/68515
https://github.com/ansible/ansible/pull/68958
79fff7da69d7cbe21d398bac77b630792ebf36f4
3591451bc75c3afcbc8ca1d6ff5e50d4bba2a876
2020-03-27T15:49:31Z
python
2020-04-17T05:27:41Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,495
["changelogs/fragments/ansible-test-change-detection-empty-python.yml", "test/lib/ansible_test/_internal/classification.py", "test/lib/ansible_test/_internal/import_analysis.py"]
ansible-test: strange failures on CI when adding new module_utils directory
##### SUMMARY In ansible-collections/community.general#49 I am adding a new module_utils directory, a Python module in there, and at the same time use that new module_utils in some Ansible modules. Example commit: 7341b4a1e48bf6e652dd5f70c5a5a5808d73de7e CI run: https://app.shippable.com/github/ansible-collections/community.general/runs/172/summary/console All CI nodes (at least the ones I randomly checked) fail with the same error: ``` 00:45 Detected changes in 4 file(s). 00:45 plugins/module_utils/compat/__init__.py 00:45 plugins/module_utils/compat/ipaddress.py 00:45 plugins/modules/cloud/scaleway/scaleway_security_group_rule.py 00:45 plugins/modules/net_tools/hetzner_firewall.py 00:45 Analyzing python module_utils imports... 00:59 WARNING: No imports found which use the "ansible_collections.community.general.plugins.module_utils.f5_utils" module_util. 00:59 WARNING: No imports found which use the "ansible_collections.community.general.plugins.module_utils.network.aos.aos" module_util. 00:59 WARNING: No imports found which use the "ansible_collections.community.general.plugins.module_utils.network.f5.iworkflow" module_util. 00:59 WARNING: No imports found which use the "ansible_collections.community.general.plugins.module_utils.network.panos.panos" module_util. 00:59 Processed 116 python module_utils in 13 second(s). 00:59 Traceback (most recent call last): 00:59 File "/root/venv/bin/ansible-test", line 28, in <module> 00:59 main() 00:59 File "/root/venv/bin/ansible-test", line 24, in main 00:59 cli_main() 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/cli.py", line 173, in main 00:59 args.func(config) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/sanity/__init__.py", line 85, in command_sanity 00:59 changes = get_changes_filter(args) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/executor.py", line 1493, in get_changes_filter 00:59 changes = categorize_changes(args, paths, args.command) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/classification.py", line 89, in categorize_changes 00:59 dependent_paths = mapper.get_dependent_paths(path) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/classification.py", line 236, in get_dependent_paths 00:59 unprocessed_paths = set(self.get_dependent_paths_non_recursive(path)) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/classification.py", line 258, in get_dependent_paths_non_recursive 00:59 paths = self.get_dependent_paths_internal(path) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/classification.py", line 273, in get_dependent_paths_internal 00:59 return self.get_python_module_utils_usage(path) 00:59 File "/root/venv/lib/python2.7/site-packages/ansible_test/_internal/classification.py", line 306, in get_python_module_utils_usage 00:59 return sorted(self.python_module_utils_imports[name]) 00:59 KeyError: u'ansible_collections.community.general.plugins.module_utils.compat' ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-test ##### ANSIBLE VERSION ```paste below devel ```
https://github.com/ansible/ansible/issues/68495
https://github.com/ansible/ansible/pull/68519
d8b5c11a638737a855b8c59aa5c5202ef2807cc5
53a3d1ffdb14a7f367945606d6ca240d47fe5e04
2020-03-26T16:45:59Z
python
2020-03-27T22:56:02Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,473
["docs/docsite/rst/dev_guide/developing_collections.rst", "docs/docsite/rst/dev_guide/index.rst", "docs/docsite/rst/dev_guide/migrating_roles.rst", "docs/docsite/rst/user_guide/collections_using.rst"]
Document how to convert legacy roles to collections
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> Add the documentation in the next comment to the Ansible docs. <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68473
https://github.com/ansible/ansible/pull/68687
7e0794085e047b58b9c95895a50aa2b1d964e5c5
caa263e2cf42cef388163efd97a2c11b2bc8cf79
2020-03-25T21:01:02Z
python
2020-05-04T20:59:54Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,471
["changelogs/fragments/68471-copy-with-preserve.yaml", "lib/ansible/plugins/action/copy.py", "test/integration/targets/copy/tasks/tests.yml"]
Recursive "copy" module "mode=preserve" fails on symlinks
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> Given a directory containing files and symlinks, if one tries to copy the directory recursively using the `copy` module and sets `local_follow=no` and `mode=preserve`, the copy module fails with: ``` bad symbolic permission for mode: preserve ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> copy ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.6 config file = /home/mbroe/.ansible.cfg configured module search path = ['/home/mbroe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 10:29:04) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ``` DEFAULT_VAULT_PASSWORD_FILE(/home/mbroe/.ansible.cfg) = /home/mbroe/.vault_pass.txt ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> `lsb_release -a`: ``` LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: Fedora Description: Fedora release 30 (Thirty) Release: 30 Codename: Thirty ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> <!--- HINT: You can paste gist.github.com links for larger files --> https://gist.github.com/mitchellroe/08be2d69cf7c961067a4a3071fa57c75 ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The file and symlink are copied with their modes preserved. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The file is copied, the link is copied, but ansible-playbook fails with `bad symbolic permission for mode: preserve`. <!--- Paste verbatim command output between quotes --> [Output](https://gist.github.com/mitchellroe/76bac2153ad37a47f1e056d8c92b2ece)
https://github.com/ansible/ansible/issues/68471
https://github.com/ansible/ansible/pull/69011
1cf26896c50379c671e120985c4f1194f44d0205
1142faa2138589e359b6a1ef1d371326b6f21a49
2020-03-25T20:10:59Z
python
2020-04-30T19:22:16Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,415
["changelogs/fragments/collection-install-mode.yaml", "lib/ansible/galaxy/collection.py", "test/units/cli/test_galaxy.py", "test/units/galaxy/test_collection_install.py"]
`ansible-galaxy collection install` creates all files with mode 0600
##### SUMMARY When installing a collection, all files are created with mode 0600. This is caused by the way the collection .tar.gz file is extracted: https://github.com/ansible/ansible/blob/d3ec31f8d5683926aa6a05bb573d9929a6266fac/lib/ansible/galaxy/collection.py#L1076-L1090 The file created by `tempfile.NamedTemporaryFile()` seems to have mode `0600` and is simply moved to the final destination without a following `os.chmod`. (See also this discussion: https://github.com/ansible-collections/community.general/pull/29#discussion_r396147440) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib/ansible/galaxy/collection.py ##### ANSIBLE VERSION ``` 2.9 2.10 ```
https://github.com/ansible/ansible/issues/68415
https://github.com/ansible/ansible/pull/68418
a9d2ceafe429171c0e2ad007058b88bae57c74ce
127d54b3630c65043ec12c4af2024f8ef0bc6d09
2020-03-23T21:15:27Z
python
2020-03-24T22:08:23Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,402
["changelogs/fragments/68402_galaxy.yml", "examples/ansible.cfg"]
add [galaxy] section to master ansible.cfg example
##### SUMMARY the example found here: https://github.com/ansible/ansible/blob/devel/examples/ansible.cfg you can see an example of the `[galaxy]` header here-> https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#downloading-a-collection-from-automation-hub ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME https://github.com/ansible/ansible/blob/devel/examples/ansible.cfg ##### ANSIBLE VERSION N/A ##### CONFIGURATION N/A ##### OS / ENVIRONMENT N/A ##### ADDITIONAL INFORMATION Here is an example from a blog we are working on-> ``` [galaxy] server_list = automation_hub, release_galaxy [galaxy_server.automation_hub] url=https://cloud.redhat.com/api/automation-hub/ auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [galaxy_server.release_galaxy] url=https://galaxy.ansible.com/ token=xxxxxxxxxxxxxxxxxxxxxx ```
https://github.com/ansible/ansible/issues/68402
https://github.com/ansible/ansible/pull/70931
13ab73cd89f9a300b0becf0a1d6911c57de27bc8
3f3bcbf05e46db08a0f5f88ec1eb4c72b82d9fd5
2020-03-23T12:43:50Z
python
2020-08-21T16:17:18Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,400
["changelogs/fragments/68400-strip-no-log-values-from-keys.yml", "lib/ansible/module_utils/basic.py", "test/integration/targets/uri/tasks/main.yml", "test/units/module_utils/basic/test_no_log.py"]
uri module set string with masked content into content and json output
##### SUMMARY uri module set string with masked content into content and json output ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME uri ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.0 config file = None configured module search path = ['/Users/hungluong/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/hungluong/Library/Python/3.7/lib/python/site-packages/ansible executable location = /Users/hungluong/Library/Python/3.7/bin/ansible python version = 3.7.6 (default, Dec 30 2019, 19:38:26) [Clang 11.0.0 (clang-1100.0.33.16)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below N/A ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - hosts: localhost connection: local tasks: - name: send request uri: url: "https://postman-echo.com/get?name=something-with-admin" user: admin password: admin method: GET force_basic_auth: yes return_content: yes status_code: 200 register: response - name: extract value vars: query: args.name set_fact: value_content: "{{ response.content }}" value_content_parsed: "{{ response.content | from_json | json_query(query) }}" value_json: "{{ response.json.args.name }}" - name: debug debug: msg: - "{{ 'something-with-admin' in value_json }}" - "{{ 'something-with-admin' in value_content }}" - "{{ 'something-with-admin' in value_content_parsed }}" - "{{ 'something-with-********' in value_json }}" - "{{ 'something-with-********' in value_content }}" - "{{ 'something-with-********' in value_content_parsed }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS The module should return the json/content value with the correct values ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The module seems to apply sensitive info masking ('********') to value matching username/password in its output <!--- Paste verbatim command output between quotes --> ```paste below "msg": [ false, false, false, true, false, true ] ```
https://github.com/ansible/ansible/issues/68400
https://github.com/ansible/ansible/pull/69653
cfd301a586302785fa888117deaf06955a240cdd
e0f25a2b1f9e6c21f751ba0ed2dc2eee2152983e
2020-03-23T11:01:05Z
python
2020-05-21T20:17:57Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,398
["changelogs/fragments/72623-ansible-test-unicode-paths.yml", "test/lib/ansible_test/_internal/target.py"]
ansible-test run sanity test failed with UnicodeDecodeError
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> i follow this tutorial https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#environment-setup to run ansible-test sanity -v --docker --python 2.7 my_test my_test which module is mentioned in the above documentation. And i failed with following error message. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ansible-test sanity ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ansible 2.10.0.dev0 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /root/ansible/lib/ansible executable location = /root/ansible/bin/ansible python version = 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ansible-config dump --only-changed [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> follow this tutorial https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#environment-setup to run ansible-test sanity -v --docker --python 2.7 my_test my_test which module is mentioned in the above documentation. <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> the sanity test will just pass ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below Run command: /usr/bin/python2.7 /root/ansible/test/lib/ansible_test/_data/yamlcheck.py Running sanity test 'bin-symlinks' Read 8765 sanity test ignore line(s) for Ansible from: test/sanity/ignore.txt pre:changelogs/fragments/ path:test/integration/targets/ansible/ansible-testé.cfg Traceback (most recent call last): File "/root/ansible/bin/ansible-test", line 28, in <module> main() File "/root/ansible/bin/ansible-test", line 24, in main cli_main() File "/root/ansible/test/lib/ansible_test/_internal/cli.py", line 168, in main args.func(config) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 165, in command_sanity settings = test.load_processor(args) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 876, in load_processor return SanityIgnoreProcessor(args, self, None) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 450, in __init__ self.parser = SanityIgnoreParser.load(args) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 428, in load SanityIgnoreParser.instance = SanityIgnoreParser(args) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 280, in __init__ paths_by_test[test.name] = set(target.path for target in test.filter_targets(test_targets)) File "/root/ansible/test/lib/ansible_test/_internal/sanity/__init__.py", line 760, in filter_targets target.path.startswith(pre) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 45: ordinal not in range(128) ```
https://github.com/ansible/ansible/issues/68398
https://github.com/ansible/ansible/pull/72623
221c50b57c347d6f8382523c48e869cb21b8c010
f94ba68d8f287918456c5de8115dafb0c69e8e7c
2020-03-23T02:37:06Z
python
2020-12-04T17:12:14Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,341
["changelogs/fragments/ssh_connection_fixes.yml", "lib/ansible/cli/arguments/option_helpers.py", "lib/ansible/config/base.yml", "lib/ansible/config/manager.py", "lib/ansible/playbook/play_context.py", "lib/ansible/plugins/connection/ssh.py", "lib/ansible/plugins/strategy/__init__.py", "lib/ansible/utils/ssh_functions.py", "test/integration/targets/connection_windows_ssh/runme.sh", "test/units/plugins/connection/test_ssh.py"]
ssh connection reset and ssh tokens in controlpath
##### SUMMARY When investigating https://github.com/ansible-community/molecule-vagrant/issues/1, I found out that ``meta: reset_connection`` is not working due to the reset() function of the ssh.py connection plugin not being able to find the connection socket. It turns out that molecule is using ``control_path = %(directory)s/%%h-%%p-%%r``. For instance, it's translated into ``ControlPath=/home/vagrant/.ansible/cp/%h-%p-%r`` on the ssh command line. The reset code does : ``` run_reset = False if controlpersist and len(cp_arg) > 0: cp_path = cp_arg[0].split(b"=", 1)[-1] if os.path.exists(cp_path): run_reset = True elif controlpersist: run_reset = True ``` Due to the content of the ControlPath argument, it will set ``cp_path`` to ``/home/vagrant/.ansible/cp/%h-%p-%r`` and of course, the ``os.path.exists(cp_path)`` will fail, making "meta: reset_connection" useless. fwiw, looks like this bug as been introduced by the fix for https://github.com/ansible/ansible/issues/42991 A crude workaround would be changing the test to ``if b'%' in cp_path or os.path.exists(cp_path)``. It may be better to interpolate the ssh tokens but I've no idea if it's really possible and how to do that. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ssh connection plugin ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible --version ansible 2.9.6 config file = /home/rtp/devel/hupstream/ansible/molecule-vagrant-zuul/t/ansible.cfg configured module search path = ['/home/rtp/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/rtp/.local/lib/python3.7/site-packages/ansible executable location = /home/rtp/.local/bin/ansible python version = 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] ``` ##### CONFIGURATION ``` [defaults] ansible_managed = Ansible managed: Do NOT edit this file manually! display_failed_stderr = True forks = 50 retry_files_enabled = False host_key_checking = False nocows = 1 interpreter_python = auto [ssh_connection] scp_if_ssh = True control_path = %(directory)s/%%h-%%p-%%r pipelining = True ``` ##### OS / ENVIRONMENT Debian stable ##### STEPS TO REPRODUCE Since I was testing that for molecule-vagrant, I've a Vagrantfile and a converge.yml file: Vagrantfile: ``` Vagrant.configure("2") do |c| c.vm.define 'test2' do |v| v.vm.hostname = 'test2' v.vm.box = 'debian/buster64' end c.vm.provision :ansible do |ansible| ansible.playbook = "converge.yml" end end ``` converge.yml ``` --- - name: Converge hosts: all gather_facts: false tasks: - name: Create test group group: name: testgroup become: true - name: Add vagrant user to test group user: name: vagrant groups: testgroup append: yes become: true - name: reset connection meta: reset_connection - name: Get vagrant user info command: id -nG register: user_grps - name: Print user_grps debug: var: user_grps - name: Check user in vagrant group assert: that: - "'testgroup' in user_grps.stdout.split(' ')" ``` ansible.cfg ``` [ssh_connection] control_path = %(directory)s/%%h-%%p-%%r ``` ##### EXPECTED RESULTS The run of the ``converge.yml`` should work ##### ACTUAL RESULTS ``` TASK [Check user in vagrant group] ********************************************* fatal: [test2]: FAILED! => { "assertion": "'testgroup' in user_grps.stdout.split(' ')", "changed": false, "evaluated_to": false, "msg": "Assertion failed" } ```
https://github.com/ansible/ansible/issues/68341
https://github.com/ansible/ansible/pull/73708
43300e22798e4c9bd8ec2e321d28c5e8d2018aeb
935528e22e5283ee3f63a8772830d3d01f55ed8c
2020-03-19T14:35:31Z
python
2021-03-03T20:25:16Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,334
["changelogs/fragments/play_bools_strict.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/playbook/base.py", "test/integration/targets/incidental_xml/tasks/test-children-elements-xml.yml", "test/integration/targets/playbook/aliases", "test/integration/targets/playbook/runme.sh", "test/integration/targets/playbook/types.yml"]
Invalid boolean values in ansible.cfg are treated as "false"
##### SUMMARY If any ansible.cfg value that expects a boolean is set to a value other than "true" or "yes" it is interpreted as "false", which leads to difficult to debug issues. Invalid boolean values should report an error or, at the very least, a warning. This is especially confusing when the user attempts to use an inline comment (see #10354) - the configuration file *looks* valid to anyone who doesn't know the implementation details, but doesn't do what it seemingly should. I was about to re-open #23912 because Ansible wasn't printing a diff even though I set `always = True # some comment` in ansible.cfg. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ansible.cfg ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6 config file = /media/sf_work/lops/ansible/ansible.cfg configured module search path = [u'/home/evgeny/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ANSIBLE_PIPELINING(/media/sf_work/lops/ansible/ansible.cfg) = True DEFAULT_BECOME(/media/sf_work/lops/ansible/ansible.cfg) = True DEFAULT_FILTER_PLUGIN_PATH(/media/sf_work/lops/ansible/ansible.cfg) = [u'/media/sf_work/lops/ansible/filter_plugins'] DEFAULT_HASH_BEHAVIOUR(/media/sf_work/lops/ansible/ansible.cfg) = merge DEFAULT_LOG_PATH(/media/sf_work/lops/ansible/ansible.cfg) = /media/sf_work/lops/ansible/ansible.log DEFAULT_ROLES_PATH(/media/sf_work/lops/ansible/ansible.cfg) = [u'/media/sf_work/lops/ansible/roles'] DEFAULT_STDOUT_CALLBACK(/media/sf_work/lops/ansible/ansible.cfg) = debug DEFAULT_TRANSPORT(/media/sf_work/lops/ansible/ansible.cfg) = smart DEFAULT_VAULT_PASSWORD_FILE(/media/sf_work/lops/ansible/ansible.cfg) = /home/evgeny/.ansible/password DIFF_ALWAYS(/media/sf_work/lops/ansible/ansible.cfg) = True INTERPRETER_PYTHON(/media/sf_work/lops/ansible/ansible.cfg) = auto_legacy_silent RETRY_FILES_ENABLED(/media/sf_work/lops/ansible/ansible.cfg) = False TRANSFORM_INVALID_GROUP_CHARS(/media/sf_work/lops/ansible/ansible.cfg) = ignore ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Ubuntu 18.04 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```ini [privilege_escalation] become = truee [diff] always = True # Always print diff ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Error (or at least warning) such as "Invalid boolean value for ansible.cfg setting 'become' in section 'privilege_escalation" ##### ACTUAL RESULTS Ansible runs with become = false and always = false, so it does not attempt to use sudo and does not print the diff at the end.
https://github.com/ansible/ansible/issues/68334
https://github.com/ansible/ansible/pull/67625
7714f691eb93c8e360912a70e8b63cf3d16674c9
babac66f9cd978b765f58a21c20f3577308f5504
2020-03-19T09:23:06Z
python
2020-04-28T17:55:26Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,275
["changelogs/fragments/68275-vault-module-args.yml", "lib/ansible/executor/module_common.py", "lib/ansible/module_utils/common/json.py", "test/integration/targets/vault/single_vault_as_string.yml"]
nios_host_record can not use nested Vault password
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY When trying to use the `nios_host_record` module using a nested `vaulted` variable for the password breaks with the follwing error: ``` fatal: [localhost]: FAILED! => { "msg": "Unable to pass options to module, they must be JSON serializable: Object of type AnsibleVaultEncryptedUnicode is not JSON serializable" } ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> nios_host_record ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.6 config file = /home/florian/code/test/ansible.cfg configured module search path = ['/home/florian/code/test/library', '/home/florian/code/test/roles/kubespray/library'] ansible python module location = /home/florian/.local/share/virtualenvs/test-y4iIM3Df/lib/python3.7/site-packages/ansible executable location = /home/florian/.local/share/virtualenvs/test-y4iIM3Df/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below DEFAULT_JINJA2_NATIVE(/home/florian/code/test/ansible.cfg) = True DEFAULT_MODULE_PATH(/home/florian/code/test/ansible.cfg) = ['/home/florian/code/test/library', '/home/florian/code/test/roles/kubespray/library'] DEFAULT_ROLES_PATH(/home/florian/code/test/ansible.cfg) = ['/home/florian/code/test/roles', '/home/florian/code/test/roles/kubespray/roles'] ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ``` NAME=Fedora VERSION="31 (Workstation Edition)" ID=fedora VERSION_ID=31 VERSION_CODENAME="" PLATFORM_ID="platform:f31" PRETTY_NAME="Fedora 31 (Workstation Edition)" ANSI_COLOR="0;34" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:31" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/" SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=31 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=31 PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" VARIANT="Workstation Edition" VARIANT_ID=workstation ``` Infoblox client version: ``` pipenv run python -c 'import infoblox_client; print(infoblox_client.__version__)' 0.4.25 ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Attempt to pass the configuration of `nios_provider` as a dictionary to the [`nios_host_record`](https://docs.ansible.com/ansible/latest/modules/nios_host_record_module.html) module. The variable `password` is stored nested: ```yaml nios_provider: host: "host" username: "user" password: ! vault | <vault_here> ``` It is passed to the `nios_host_record` as a `dictionary`: ```yaml - hosts: localhost tasks: - name: Remove a hostrecord from infoblox nios_host_record: name: "my-hostrecord.local" ipv4addrs: - ipv4addr: "192.168.1.120" state: absent provider: "{{ nios_provider }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Passing a variable with nested vaulted variable should work and not break the module. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ``` TASK [Remove a hostrecord from infoblox] ************************************* fatal: [localhost]: FAILED! => {"msg": "Unable to pass options to module, they must be JSON serializable: Object of type AnsibleVaultEncryptedUnicode is not JSON serializable"} ```
https://github.com/ansible/ansible/issues/68275
https://github.com/ansible/ansible/pull/70607
375c6b4ae4b809eace0ef6783e70349d04d5dc6a
a77dbf08663e002198d0fa2af502d5cde8009454
2020-03-17T12:19:16Z
python
2020-07-14T15:56:26Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,218
["changelogs/fragments/lineinfile-use-module-tempdir.yaml", "lib/ansible/modules/lineinfile.py"]
Lineinfile and Replace modules do not allow for setting the temporary directory
The replace and lineinfile modules do not allow for temporary directories to be set with environment variables. See https://github.com/ansible/ansible/issues/24082 for a similar bug report. !component =lib/ansible/modules/files/lineinfile.py However, this is for the facts directory. Here's how it is reproducible: On the target server we are trying to write to `/etc/ansible/facts.d/cloudera.fact`: ``` # ls -al / | grep etc drwxr-xr-x. 151 root root 12288 Mar 9 08:38 etc # ls -al /etc | grep ansible drwxr-xr-x 3 root root 4096 Nov 22 2016 ansible # ls -al /etc/ansible/ | grep 'facts.d' drwxr-xr-x 2 root root 4096 Mar 13 11:53 facts.d # ls -al /etc/ansible/facts.d/ | grep cloudera.fact -rw-rw-r-- 1 cloudera-scm cloudera-scm 10 Mar 13 11:54 cloudera.fact ``` Here is the playbook: ``` cat playbooks/test_svcacct_lineinfile.yml - hosts: all become: True become_user: cloudera-scm gather_facts: False tasks: - name: Add lineinfile lineinfile: line: 'key=value2' state: present create: False path: '/etc/ansible/facts.d/cloudera.fact' ``` This will fail since there is no way to override the directory that lineinfile hard-codes the destination directory as the one which has the file which is being edited, instead of `remote_tmp` or any of the `['TMP', 'TEMP', 'TMPDIR']` environment variables: https://github.com/ansible/ansible-modules-core/blob/devel/files/lineinfile.py#L213 which calls https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L2238 Hardcoding the `dir` param as the argument to the `tempfile.mkstemp()` call. Is there a way that this can be changed to be able to set a custom temp dir?
https://github.com/ansible/ansible/issues/68218
https://github.com/ansible/ansible/pull/69543
34db57a47f875d11c4068567b9ec7ace174ec4cf
b8469d5c7a0b24978836d445502d735089293d3c
2020-03-13T17:47:17Z
python
2020-05-15T19:52:17Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,186
["changelogs/fragments/68186_collection_index_err.yml", "lib/ansible/cli/galaxy.py", "test/integration/targets/ansible-galaxy-collection/tasks/download.yml"]
Galaxy install command does not validate null collections entry
##### SUMMARY Certain `requirements.yml` file syntax still leads to traceback. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib//ansible/cli/galaxy.py ##### ANSIBLE VERSION ```paste below ansible --version [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ansible 2.10.0.dev0 config file = None configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible executable location = /Users/alancoding/.virtualenvs/awx_collection/bin/ansible python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] ``` ##### CONFIGURATION ```paste below ansible-config dump --only-changed [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. ANSIBLE_NOCOWS(env: ANSIBLE_NOCOWS) = True ``` ##### OS / ENVIRONMENT Mac OS / N/A ##### STEPS TO REPRODUCE Make a requirements file that has a null entry for collections ```yaml collections: ``` now run `ansible-galaxy collection install -r requirements.yml -vvv` ##### EXPECTED RESULTS Does nothing, exit code 0 ##### ACTUAL RESULTS traceback ```paste below Traceback (most recent call last): File "/Users/alancoding/Documents/repos/ansible/bin/ansible-galaxy", line 123, in <module> exit_code = cli.run() File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 456, in run context.CLIARGS['func']() File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 928, in execute_install requirements = self._require_one_of_collections_requirements(collections, requirements_file) File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 662, in _require_one_of_collections_requirements requirements = self._parse_requirements_file(requirements_file, allow_old_format=False)['collections'] File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 550, in _parse_requirements_file for collection_req in file_requirements.get('collections', []): TypeError: 'NoneType' object is not iterable ```
https://github.com/ansible/ansible/issues/68186
https://github.com/ansible/ansible/pull/69199
9d48884e36fb4fd9551f000b87d264383de74e75
8d43d79191f1b7f67ea18fa050a4eb26bcd860da
2020-03-12T14:57:08Z
python
2020-05-05T15:34:04Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,185
["docs/docsite/rst/user_guide/windows_setup.rst"]
Ansible Playbook on Windows fails if a UNC Path is present in PSModulePath
### SUMMARY Ansible playbook on Windows fails with something like: ``` powershell The 'Out-String' command was found in the module 'Microsoft.PowerShell.Utility', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Utility'. ``` It was discovered, that a [UNC Path is present in PSModulePath](https://support.microsoft.com/en-us/help/4076842), which seems to trigger the double hop problem with certain authentication methods, such as Kerberos. The PSModulePath contents can be displayed with `$env:PSModulePath`. This could be documented e.g. in ansible/docs/docsite/rst/user_guide/windows_setup.rst ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME windows_setup.rst ##### ANSIBLE VERSION ```paste below ansible 2.7.7 config file = /home/administrator/Documents/BGH/automation/ansible/ansible.cfg configured module search path = ['/home/administrator/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] ``` ##### CONFIGURATION ```paste below DEFAULT_FORKS(/home/administrator/Documents/BGH/automation/ansible/ansible.cfg) = 25 DEFAULT_HOST_LIST(/home/administrator/Documents/BGH/automation/ansible/ansible.cfg) = ['/home/administrator/Documents/BGH/automation/ansible/hosts'] DEFAULT_STDOUT_CALLBACK(/home/administrator/Documents/BGH/automation/ansible/ansible.cfg) = yaml ``` ##### OS / ENVIRONMENT Debian 10, connecting with Ansible to Windows Server 2008 R2 with current updates, .Net 4.8 and PowerShell 5.1 ##### ADDITIONAL INFORMATION Deeper explanation of the double hopping issues, such as this one, could probably save many people lots of time and make Ansible with Windows more approachable. Not everybody can immediately connect all the dots, when somebody writes just IMHO hints.
https://github.com/ansible/ansible/issues/68185
https://github.com/ansible/ansible/pull/68421
02e36fbfc27c0948f0e6929d7cecbbca999256dc
7ec0d59c30ae508302320d390285785096779004
2020-03-12T09:46:43Z
python
2020-03-25T18:09:32Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,121
[".github/BOTMETA.yml", "lib/ansible/config/routing.yml"]
kubectl connection plugin migration routed to wrong collection
##### SUMMARY During the 'great migration', the `kubectl` connection plugin was missed in the initial routing mapping, so it needs to be updated in the `routing.yml` file (https://github.com/ansible/ansible/blob/temp-2.10-devel/lib/ansible/config/routing.yml#L19-L20). ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME The Great Collection Migration ##### ANSIBLE VERSION N/A ##### CONFIGURATION N/A ##### OS / ENVIRONMENT N/A ##### STEPS TO REPRODUCE 1. Observe the `lib/ansible/config/routing.yml` file. 2. Look at the value of `plugin_routing.connection.kubectl.redirect` ##### EXPECTED RESULTS The value should be `community.kubernetes.kubectl` ##### ACTUAL RESULTS The value is `community.general.kubectl`
https://github.com/ansible/ansible/issues/68121
https://github.com/ansible/ansible/pull/68122
cba90feabfa7e56460204d66ae756d3a9f348573
3b5ba22f526c0d31f766f0b343173761cf0d7260
2020-03-09T19:59:39Z
python
2020-04-10T15:24:52Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,060
["test/integration/targets/collections/collections/ansible_collections/me/mycoll1/plugins/action/action1.py", "test/integration/targets/collections/collections/ansible_collections/me/mycoll1/plugins/modules/action1.py", "test/integration/targets/collections/collections/ansible_collections/me/mycoll2/plugins/modules/module1.py", "test/integration/targets/collections/invocation_tests.yml", "test/integration/targets/collections/runme.sh"]
Extend FQCN behavior to ActionModule._execute_module()
<!--- Verify first that your feature was not already discussed on GitHub --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Describe the new feature/improvement briefly below --> Action plugins should be able to utilize modules provided in separate collections. I can't seem to get the desired behavior using standard methods. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ActionModule._execute_module() ##### ADDITIONAL INFORMATION <!--- Describe how the feature would be used, why it is needed and what it would solve --> Collections may benefit from the ability to leverage another module (which is located in a separate collection) as part of their own action plugins. <!--- Paste example playbooks or commands between quotes below --> ```python class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): ''' handler for file transfer operations ''' if task_vars is None: task_vars = dict() result = super(ActionModule, self).run(tmp, task_vars) if result.get('skipped'): return result module_args = self._task.args.copy() result.update( self.ActionModule._execute_module( module_name='ansible.collectionname.modulename', module_args=module_args, task_vars=task_vars, ) ) return result ``` <!--- HINT: You can also paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68060
https://github.com/ansible/ansible/pull/68080
6acaf9fa9521fb6462d8e89e5e8f0248dca80383
ecd66a6a6e4195a7e7fe734701a8762a059132c1
2020-03-06T00:18:15Z
python
2020-03-25T15:57:53Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,054
["changelogs/fragments/68310-low_level_execute_command-honor-executable.yml", "lib/ansible/plugins/action/__init__.py", "test/integration/targets/raw/runme.sh", "test/integration/targets/raw/runme.yml", "test/integration/targets/raw/tasks/main.yml"]
raw no longer honoring executable (2.9 vs 2.7)
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> In Ansible 2.7, I was able to specify an alternative executable at the task level when running the raw module. This behaviour has changed in 2.9; the task no longer honors executable. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> raw ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.4 config file = /home/rowagn/data-platform/ansible_bootstrap/ansible.cfg configured module search path = [u'/home/rowagn/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /sso/sfw/virtualenv/ansible29/lib/python2.7/site-packages/ansible-2.9.4-py2.7.egg/ansible executable location = /sso/sfw/virtualenv/ansible29/bin/ansible python version = 2.7.17 (default, Feb 6 2020, 10:54:17) [GCC 5.4.0 20160609] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ALLOW_WORLD_READABLE_TMPFILES(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = True ANSIBLE_PIPELINING(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = True ANSIBLE_SSH_ARGS(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = -C -o ControlMaster=no -o StrictHostKey DEFAULT_EXECUTABLE(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = /bin/sh DEFAULT_HOST_LIST(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = [u'/home/rowagn/data-platform/ansible_ RETRY_FILES_ENABLED(/home/rowagn/data-platform/ansible_bootstrap/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> I'll elaborate below, but our users are not allowed to execute /bin/sh (or other shells) as sudo. ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> create a user (i.e., testuser) on the target machine with the following restrictions in /etc/sudoers: ``` Cmnd_Alias SHELLS = /bin/sh testuser ALL=(ALL) ALL, !SHELLS ``` create /etc/ansible-wrapper on the target machine with 755 permissions containing: ``` #!/bin/bash [[ -z $1 ]] && exit 0 /bin/bash -c "$@" ``` create ansible.cfg containing: ``` executable=/bin/sh ``` Then run the playbook in 2.7 and 2.9 environments. ``` ansible-playbook a.yml -K -k -utestuser ``` <!--- Paste example playbooks or commands between quotes below --> ```yaml $ cat a.yml --- - hosts: all gather_facts: no tasks: - name: whoami raw: echo "test" > /tmp/test args: executable: "/etc/ansible-wrapper" become: yes become_method: sudo ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Expected (this is what happens on ansible 2.7): ``` $ ansible-playbook a.yml -K -k -utestuser -vvv ansible-playbook 2.7.0 config file = /home/rowagn/data-platform/ansible_bootstrap/ansible.cfg configured module search path = [u'/home/rowagn/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /sso/sfw/python2/lib/python2.7/site-packages/ansible-2.7.0-py2.7.egg/ansible executable location = /sso/sfw/python2/bin/ansible-playbook python version = 2.7.12 (default, Apr 25 2017, 09:26:15) [GCC 5.4.0 20160609] Using /home/rowagn/data-platform/ansible_bootstrap/ansible.cfg as config file SSH password: SUDO password[defaults to SSH password]: Parsed /home/rowagn/data-platform/ansible_bootstrap/hosts inventory source with ini plugin PLAYBOOK: a.yml ****************************************************************************************************** 1 plays in a.yml PLAY [all] *********************************************************************************************************** META: ran handlers TASK [whoami] ******************************************************************************************************** task path: /home/rowagn/data-platform/ansible_bootstrap/a.yml:5 <rowagn-tower-test01.vsp.sas.com> ESTABLISH SSH CONNECTION FOR USER: testuser <rowagn-tower-test01.vsp.sas.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=no -o StrictHostKeyChecking=no -o User=testuser -o ConnectTimeout=10 -tt rowagn-tower-test01.vsp.sas.com '/etc/ansible-wrapper -c '"'"'sudo -H -S -p "[sudo via ansible, key=ftbmhhvbpkovfeymzyhwqpmtjrwljdkp] password: " -u root /etc/ansible-wrapper -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ftbmhhvbpkovfeymzyhwqpmtjrwljdkp; echo "test" > /tmp/test'"'"'"'"'"'"'"'"''"'"'' Escalation succeeded <rowagn-tower-test01.vsp.sas.com> (0, '\r\n', 'Connection to rowagn-tower-test01.vsp.sas.com closed.\r\n') changed: [rowagn-tower-test01.vsp.sas.com] => { "changed": true, "rc": 0, "stderr": "Connection to rowagn-tower-test01.vsp.sas.com closed.\r\n", "stderr_lines": [ "Connection to rowagn-tower-test01.vsp.sas.com closed." ], "stdout": "\r\n", "stdout_lines": [ "" ] } META: ran handlers META: ran handlers PLAY RECAP *********************************************************************************************************** rowagn-tower-test01.vsp.sas.com : ok=1 changed=1 unreachable=0 failed=0 ``` If I tail /var/log/secure on the target, I see the following is executed: ``` Mar 5 19:38:06 rowagn-tower-test01 sudo: testuser : TTY=pts/1 ; PWD=/home/testuser ; USER=root ; COMMAND=/etc/ansible-wrapper -c echo BECOME-SUCCESS-blsgdxudsexamxfpsscdlgkglhynitnw; echo "test" > /tmp/test ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Actual (this is what happens on Ansible 2.9): <!--- Paste verbatim command output between quotes --> ``` $ ansible-playbook a.yml -K -k -utestuser -vvv ansible-playbook 2.9.4 config file = /home/rowagn/data-platform/ansible_bootstrap/ansible.cfg configured module search path = [u'/home/rowagn/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /sso/sfw/virtualenv/ansible29/lib/python2.7/site-packages/ansible-2.9.4-py2.7.egg/ansible executable location = /sso/sfw/virtualenv/ansible29/bin/ansible-playbook python version = 2.7.17 (default, Feb 6 2020, 10:54:17) [GCC 5.4.0 20160609] Using /home/rowagn/data-platform/ansible_bootstrap/ansible.cfg as config file SSH password: BECOME password[defaults to SSH password]: host_list declined parsing /home/rowagn/data-platform/ansible_bootstrap/hosts as it did not pass its verify_file() method script declined parsing /home/rowagn/data-platform/ansible_bootstrap/hosts as it did not pass its verify_file() method auto declined parsing /home/rowagn/data-platform/ansible_bootstrap/hosts as it did not pass its verify_file() method Parsed /home/rowagn/data-platform/ansible_bootstrap/hosts inventory source with ini plugin PLAYBOOK: a.yml **************************************************************************************************** 1 plays in a.yml PLAY [all] ********************************************************************************************************* META: ran handlers TASK [whoami] ****************************************************************************************************** task path: /home/rowagn/data-platform/ansible_bootstrap/a.yml:5 <rowagn-tower-test01.vsp.sas.com> ESTABLISH SSH CONNECTION FOR USER: testuser <rowagn-tower-test01.vsp.sas.com> SSH: EXEC sshpass -d8 ssh -C -o ControlMaster=no -o StrictHostKeyChecking=no -o 'User="testuser"' -o ConnectTimeout=10 -tt rowagn-tower-test01.vsp.sas.com '/etc/ansible-wrapper -c '"'"'sudo -H -S -p "[sudo via ansible, key=iayqkqennnjnowmcjazgysiwuozpbzmy] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-iayqkqennnjnowmcjazgysiwuozpbzmy ; echo "test" > /tmp/test'"'"'"'"'"'"'"'"''"'"'' Escalation succeeded <rowagn-tower-test01.vsp.sas.com> (1, '\r\n', 'Connection to rowagn-tower-test01.vsp.sas.com closed.\r\n') <rowagn-tower-test01.vsp.sas.com> Failed to connect to the host via ssh: Connection to rowagn-tower-test01.vsp.sas.com closed. fatal: [rowagn-tower-test01.vsp.sas.com]: FAILED! => { "changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Connection to rowagn-tower-test01.vsp.sas.com closed.\r\n", "stderr_lines": [ "Connection to rowagn-tower-test01.vsp.sas.com closed." ], "stdout": "\r\n", "stdout_lines": [ "" ] } PLAY RECAP ********************************************************************************************************* rowagn-tower-test01.vsp.sas.com : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ``` If I tail /var/log/secure on the target, I see the following is executed: ``` Mar 5 19:38:32 rowagn-tower-test01 sudo: testuser : command not allowed ; TTY=pts/1 ; PWD=/home/testuser ; USER=root ; COMMAND=/bin/sh -c echo BECOME-SUCCESS-gurlxipwqzptgdiqwmrmaevflvziiiff ; echo "test" > /tmp/test ``` So in the 2.7 case, /etc/ansible-wrapper was used as the executable, as specified in the playbook, but in the 2.9 case, /bin/sh (from ansible.cfg) is used. Here's why this is a problem for us. Our IT crew doesn't allow us to execute shells (/bin/sh, /bin/bash, etc) with sudo. As a workaround, we create the above wrapper script on all our target hosts and use executable=/etc/ansible-wrapper in our ansible.cfg files. This all works fine. However, we have a playbook that we use to bootstrap our target hosts. The bootstrap playbook uses executable=/bin/sh (in ansible.cfg). It copies /etc/ansible-wrapper out to the target in the user's home directory (which uses /bin/sh, since no sudo is needed). Then, it uses the raw module to move ansible-wrapper to /etc, but since this requires sudo, it specifies /home/user/ansible-wrapper as the executable for that task (similarly to the above playbook). Without being able to specify executable, this playbook breaks in Ansible 2.9.
https://github.com/ansible/ansible/issues/68054
https://github.com/ansible/ansible/pull/68315
1e08bb7a6fc8cc5c54034b469920d64984d8af47
977b58740b7dbb328355c7c6970e1a6684101d13
2020-03-05T19:48:22Z
python
2020-04-22T16:56:35Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,032
["changelogs/fragments/ansible-test-pytest-assertion-rewriting.yml", "test/integration/targets/ansible-test-units-assertions/aliases", "test/integration/targets/ansible-test-units-assertions/ansible_collections/ns/col/tests/unit/plugins/modules/test_assertion.py", "test/integration/targets/ansible-test-units-assertions/runme.sh", "test/integration/targets/ansible-test/venv-pythons.py", "test/lib/ansible_test/_util/target/pytest/plugins/ansible_pytest_collections.py"]
Unit test runner hides the normal pytest failure output
##### SUMMARY When running `ansible-test units ...`, failed tests have no diagnostic messages attached to the assertion error. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-test ##### ANSIBLE VERSION ```paste below ansible 2.9.5 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tadej/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/tadej/xlab/ansible/ansible_collections/debug/collection/venv/lib/python3.7/site-packages/ansible executable location = /home/tadej/xlab/ansible/ansible_collections/debug/collection/venv/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION `ansible-config dump --only-changed` reported no changes. ##### OS / ENVIRONMENT Tested on latest stable Fedora, Ansible was installed in a virtual environment using pip. ##### STEPS TO REPRODUCE Run `ansible-test units path/to/test_file.py`, where *path/to/test_file.py* should have a failing test case akin to the next one: def test_x(): assert dict(a=1) == dict(a=2) See https://github.com/tadeboro/ansible-test-bad-assert for ready-to-run example. ##### EXPECTED RESULTS In the case above, `pytest` prints this out: ``` ========================== FAILURES =========================== ___________________________ test_x ____________________________ def test_x(): > assert dict(a=1) == dict(a=2) E AssertionError: assert {'a': 1} == {'a': 2} E Differing items: E {'a': 1} != {'a': 2} E Use -v to get the full diff tests/unit/test_x.py:2: AssertionError ``` ##### ACTUAL RESULTS `ansible-test units` prints this: ``` ========================== FAILURES =========================== ___________________________ test_x ____________________________ [gw1] linux -- Python 3.7.6 /tmp/python-hvsrfqdb-ansible/python def test_x(): > assert dict(a=1) == dict(a=2) E AssertionError tests/unit/test_x.py:2: AssertionError ``` ##### ADDITIONAL NOTES I can bring back the diagnostic messages by commenting out the line https://github.com/ansible/ansible/blob/35996e57abba1f40abb493379d5cbe2dd90e65c3/test/lib/ansible_test/_data/pytest/plugins/ansible_pytest_collections.py#L40, but this of course then breaks other stuff.
https://github.com/ansible/ansible/issues/68032
https://github.com/ansible/ansible/pull/80020
2f8f7fba4c6b17c25bf20913bfd332ea06b8e8ae
fe2732b91e538e0278104d71417ddfd0aae01eed
2020-03-05T07:47:48Z
python
2023-02-21T01:54:20Z
closed
ansible/ansible
https://github.com/ansible/ansible
68,024
["docs/docsite/keyword_desc.yml"]
"collections" keyword is UNDOCUMENTED
<!--- Verify first that your improvement is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below, add suggestions to wording or structure --> <!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? --> There is no documentation of "collections" keyword in Keywords page: https://docs.ansible.com/ansible/2.9/reference_appendices/playbooks_keywords.html ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below 2.9.5 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. OS version, browser, etc. --> ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/68024
https://github.com/ansible/ansible/pull/68055
0cd07eb3fd529297622b29aff93c2fa94fbb0ad0
5833af9e2a5cd1d25e85995fc9d930891d5e26fd
2020-03-04T22:16:40Z
python
2020-06-25T23:49:57Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,972
["changelogs/fragments/67972-git-fetch-force.yml", "lib/ansible/modules/source_control/git.py", "test/integration/targets/git/tasks/archive.yml", "test/integration/targets/git/tasks/forcefully-fetch-tag.yml", "test/integration/targets/git/tasks/main.yml", "test/integration/targets/git/tasks/setup-local-repos.yml"]
Git module: Failed to download remote objects and refs
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> The invocation to git module executes the command `git fetch --tags` which can fail under certain circumstances (some tag remotely overridden). Even by adding the option `force: "yes"` the command it is executed without the **-f** option. To workaround it, it is necessary to execute the command `git fetch --tags -f` previous to the git module execution. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> Git Module ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.4 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Generate a git tag: ``` git checkout bla git tag -f DEV git push origin DEV --force ``` And remotely, override it: ``` git checkout foo git tag -f DEV git push origin DEV --force ``` Then in the first local environment, execute the ansible git task <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: "Clone/refresh Staging Repo with SSH" when: use_ssh == "yes" git: dest: "{{ staging_repo }}" name: "some git repo" version: "master" force: "yes" key_file: '~/.ssh/id_rsa' ssh_opts: "-o StrictHostKeyChecking=no" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> If I set the option force to true, I would expect to get the git fetch command executed with the -f option. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below TASK [Clone/refresh Staging Repo with SSH] ************************************************************************************ 4:37 fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: [“/usr/local/bin/git”, “fetch”, “--tags”, “origin”], “msg”: “Failed to download remote objects and refs: From XXXX some commit..other commit master -> origin/master\n ! [rejected] DEV -> DEV (would clobber existing tag)} ```
https://github.com/ansible/ansible/issues/67972
https://github.com/ansible/ansible/pull/68691
123c624b28398c10864be5238dfdd44c524564a0
4916be24fd8be0c223bf5e5f641d676a8d56ad82
2020-03-03T14:48:44Z
python
2020-04-06T20:25:24Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,900
["docs/docsite/rst/community/development_process.rst"]
get_certificate always checks availability of pyopenssl backend
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> If pyOpenssl is unavailable `get_certificate` module fails with error about missing `pyopenssl` even when `cryptography` backend is available, or selected using `select_crypto_backend` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> get_certificate ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.5 config file = /home/gp/.ansible.cfg configured module search path = ['/home/gp/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/gp/.local/share/virtualenvs/ansible-site-jT6p0Ljs/lib/python3.7/site-packages/ansible executable location = /home/gp/.local/share/virtualenvs/ansible-site-jT6p0Ljs/bin/ansible python version = 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below CACHE_PLUGIN(/home/gp/.ansible.cfg) = redis CACHE_PLUGIN_CONNECTION(/home/gp/.ansible.cfg) = 127.0.0.1:6379:0 CACHE_PLUGIN_TIMEOUT(/home/gp/.ansible.cfg) = 300 CONDITIONAL_BARE_VARS(/home/gp/.ansible.cfg) = False DEFAULT_HOST_LIST(/home/gp/.ansible.cfg) = ['/home/gp/infra'] DEFAULT_JINJA2_NATIVE(/home/gp/.ansible.cfg) = True DEFAULT_REMOTE_USER(/home/gp/.ansible.cfg) = root INTERPRETER_PYTHON(/home/gp/.ansible.cfg) = auto INVENTORY_ENABLED(/home/gp/.ansible.cfg) = ['auto', 'yaml', 'ini'] ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Controller and managed host is the same one, Debian 10 buster using python from a virtualenv created using the system python. In the managed host virtualenv, Ansible 2.9.5 is installed into it as well as cryptography 2.6. pyopenssl is not installed in this virtualenv nor on the system python of the target host. Host uses system package python3-cryptography. ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Try to use `get_certificate` with `select_crypto_backend: cryptography` <!--- Paste example playbooks or commands between quotes below --> ```yaml - hosts: localhost connection: local gather_facts: no vars: servers: - host: example.net - host: example.org tasks: - name: Test HTTPS download get_certificate: host: "{{ item.host }}" port: "{{ item.port | default(443) | int }}" select_crypto_backend: cryptography loop: "{{ servers }}" run_once: true register: reg_cert_check ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> It should use the cryptography backend instead of complaining about missing pyopenssl >= 0.15 ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below The full traceback is: Traceback (most recent call last): File "/tmp/ansible_get_certificate_payload_pwc38k3u/ansible_get_certificate_payload.zip/ansible/modules/crypto/get_certificate.py", line 185, in <module> ModuleNotFoundError: No module named 'OpenSSL' failed: [localhost] (item={'host': 'example.org'}) => { "ansible_loop_var": "item", "changed": false, "invocation": { "module_args": { "ca_cert": null, "host": "example.org", "port": 443, "proxy_host": null, "proxy_port": 8080, "select_crypto_backend": "cryptography", "timeout": 10 } }, "item": { "host": "example.org" }, "msg": "Failed to import the required Python library (pyOpenSSL >= 0.15) on platinum's Python /home/gp/.local/share/virtualenvs/ansible-site-jT6p0Ljs/bin/python3.7m. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter" } ```
https://github.com/ansible/ansible/issues/67900
https://github.com/ansible/ansible/pull/69268
0894ea1b1d50ef0f51f0ac7312fb9ec3d7d75872
1e01ac413b874d77cab74457ab6b38f6a1d5becb
2020-03-01T19:51:21Z
python
2020-05-28T20:56:26Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,795
["changelogs/fragments/win-unzip-check-extraction-path.yml", "lib/ansible/modules/windows/win_unzip.ps1", "test/integration/targets/win_unzip/files/create_crafty_zip_files.py", "test/integration/targets/win_unzip/tasks/main.yml"]
win_unzip path traversal with specially crafted archive
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY CVE-2020-1737 <!--- Explain the problem briefly below --> A specially crafted zip archive could result in path traversal in the `win_unzip` module. The `Extract-Zip` function doesn't check if the extracted path belongs to the destination folder. A possible solution is to [check destination path](https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.ziparchive?view=netframework-4.8). ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> `lib/ansible/modules/windows/win_unzip.ps1` ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below 2.10 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below default ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/67795
https://github.com/ansible/ansible/pull/67799
8ab304af4450c883700b144bcc03c395f205860f
d30c57ab22db24f6901166fcc3155667bdd3443f
2020-02-26T19:55:42Z
python
2020-02-28T22:56:21Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,706
["changelogs/fragments/pathlist_strip.yml", "lib/ansible/config/manager.py"]
Cannot put space after comma in inventory list
##### SUMMARY When configuring multiple inventory sources in `ansible.cfg`, you cannot add a space after the comma. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME config ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.10.0.dev0 config file = /home/alwyn/tmp/inventory-test/ansible.cfg configured module search path = ['/home/alwyn/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/alwyn/.local/opt/pyenv/versions/3.8.1/envs/inventory-test/lib/python3.8/site-packages/ansible executable location = /home/alwyn/.local/opt/pyenv/versions/3.8.1/envs/inventory-test/bin/ansible python version = 3.8.1 (default, Feb 21 2020, 15:48:23) [GCC 9.2.1 20200130] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below DEFAULT_HOST_LIST(/home/alwyn/tmp/inventory-test/ansible.cfg) = ['/home/alwyn/tmp/inventory-test/hosts', '/home/alwyn/tmp/inventory-test/ hosts2'] ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Any/all (Linux?) platforms. Not sure about Windows. I'm on Archlinux with kernel 5.5.4-zen1-1-zen. ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Configure `default.inventory` in `ansible.cfg` like so: ``` [defaults] inventory = hosts-foo, hosts-bar ``` 1. Create two inventory files - `hosts-foo` with contents ``` [foo] localhost ``` - `hosts-bar` with contents ``` [bar] localhost ``` 1. `ansible bar -m ping` ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The `bar` hostgroup is found and the ping module runs against localhost. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The `bar` hostgroup is not found as it tries to find it in `$directory/ hosts-bar` instead of `$directory/hosts-bar`. <!--- Paste verbatim command output between quotes --> ```paste below [WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point. [WARNING]: Unable to parse /home/alwyn/tmp/inventory-test/ hosts-bar as an inventory source [WARNING]: Could not match supplied host pattern, ignoring: bar [WARNING]: No hosts matched, nothing to do ``` ##### FURTHER DETAILS This should get fixed by #67701.
https://github.com/ansible/ansible/issues/67706
https://github.com/ansible/ansible/pull/67701
726d6455d813e40f37e1298f0dce8a2f76709de4
9ea5bb336400e20178cc6fb3816aef30dbdc8b60
2020-02-24T15:43:08Z
python
2020-02-25T14:16:27Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,672
["lib/ansible/modules/windows/win_dns_record.py"]
win_dns_record: Add documentation for multi-valued entries
##### SUMMARY #67628 exposed an area in which `win_dns_record` could be improved, as far as _documenting_ how to add multiple values to a given `A` (or other) record type. Although the `value` attribute is clearly documented as taking a _list_, **none of the examples actually show that** --- leading to the mistaken impression in the case of #67628 that there was no existing way to do that. A few quick examples would go a long way. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME `win_dns_record` ##### ANSIBLE VERSION Affects all versions that have this module (ie 2.8 and up) ##### CONFIGURATION n/a ##### OS / ENVIRONMENT Windows 2012+ targets only ##### STEPS TO REPRODUCE n/a ##### Musings Should give examples for both `A` and `MX` records, since those are (probably) the most common multi-valued record types.
https://github.com/ansible/ansible/issues/67672
https://github.com/ansible/ansible/pull/67744
1b5c69deefe7fe5e14b37f93b8a2aab90e6663be
e9f22a22693d1cc2ca4da02490e9a3589cb9fe36
2020-02-22T23:09:13Z
python
2020-02-25T21:03:03Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,615
["changelogs/fragments/67615-vmware_host_service_info_fix.yml", "lib/ansible/modules/cloud/vmware/vmware_host_service_info.py"]
vmware_host_service_info fails with AttributeError: 'NoneType' object has no attribute 'service'
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> When using the vmware_host_service_info module, an attribute error is encountered with different versions of Ansible (2.9.0, 2.9.2 and 2.9.5) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> vmware_host_service_info ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.2 config file = /home/wtwassim/Documents/Projects/CMSP/ansible.cfg configured module search path = [u'/home/wtwassim/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/wtwassim/.local/lib/python2.7/site-packages/ansible executable location = /home/wtwassim/.local/bin/ansible python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ACTION_WARNINGS(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = False ANSIBLE_PIPELINING(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = True ANSIBLE_SSH_RETRIES(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = 3 DEFAULT_FORKS(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = 60 DEFAULT_GATHERING(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = smart DEFAULT_GATHER_SUBSET(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = [u'!all'] DEFAULT_HOST_LIST(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = [u'/home/wtwassim/Documents/Projects/CM DEFAULT_TIMEOUT(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = 60 DISPLAY_SKIPPED_HOSTS(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = False HOST_KEY_CHECKING(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = False INTERPRETER_PYTHON(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = auto_silent RETRY_FILES_ENABLED(/home/wtwassim/Documents/Projects/CMSP/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> CentOS Linux release 7.7.1908 (Core) Linux wassimans01.cisco-cms.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Target vsphere version: 6.5.0 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> To get the list of esxi hosts that are in a given cluster, I call the module in a task contained within a block <!--- Paste example playbooks or commands between quotes below --> ```yaml --- # tasks to get hosts list - block: - name: Get hosts list vmware_host_service_info: hostname: "{{ information.address }}" username: "{{ credentials.username }}" password: "{{ credentials.password }}" cluster_name: "{{ information.cluster }}" validate_certs: no register: host_info delegate_to: localhost - name: define hosts_list set_fact: hosts_list: "{{hosts_list|default([]) + [item.key]}}" loop: "{{host_info.host_service_info|dict2items}}" - name: define information.resources set_fact: information: "{{information | combine(new_item, recursive=true)}}" vars: new_item: "{'resources': \"{{hosts_list}}\"}" no_log: true tags: ['capcheck', 'vm_creation'] ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> The module to succeed in getting the hosts info in the specified cluster ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Module fails with <!--- Paste verbatim command output between quotes --> ```paste below The full traceback is: Traceback (most recent call last): File "<stdin>", line 102, in <module> File "<stdin>", line 94, in _ansiballz_main File "<stdin>", line 40, in invoke_module File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py", line 154, in <module> File "/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py", line 150, in main File "/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py", line 116, in gather_host_info AttributeError: 'NoneType' object has no attribute 'service' fatal: [vcenter01 -> localhost]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py\", line 154, in <module>\n File \"/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py\", line 150, in main\n File \"/tmp/ansible_vmware_host_service_info_payload_R9VIO2/ansible_vmware_host_service_info_payload.zip/ansible/modules/cloud/vmware/vmware_host_service_info.py\", line 116, in gather_host_info\nAttributeError: 'NoneType' object has no attribute 'service'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } ```
https://github.com/ansible/ansible/issues/67615
https://github.com/ansible/ansible/pull/67641
482885e0c8ebc9554ae5eb81dce67253f64455f2
6936e7b698d374076ccd5154a80dd23a00ab7d92
2020-02-20T14:08:05Z
python
2020-02-22T16:16:18Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,603
["lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace.py"]
Not able to enable intelligence_packs from ansible module for loganalyticsworkspace
##### SUMMARY I am using azure_rm_loganalyticsworkspace ansible module to enable container monitoring and backup , and it gives me error as unsupported parameters ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME azure_rm_loganalyticsworkspace ##### ANSIBLE VERSION ``` ansible-playbook 2.8.6 config file = /home/devans/ansible.cfg configured module search path = [u'/home/devans/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible-playbook python version = 2.7.5 (default, Apr 9 2019, 16:02:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36.0.1)] ``` ##### CONFIGURATION ``` COMMAND_WARNINGS(/home/devans/ansible.cfg) = False DEFAULT_GATHERING(/home/devans/ansible.cfg) = smart DEFAULT_HOST_LIST(/home/devans/ansible.cfg) = [u'/home/devans/hosts'] DEFAULT_STDOUT_CALLBACK(/home/devans/ansible.cfg) = yaml DEPRECATION_WARNINGS(/home/devans/ansible.cfg) = False HOST_KEY_CHECKING(/home/devans/ansible.cfg) = False SYSTEM_WARNINGS(/home/devans/ansible.cfg) = False ``` ##### OS / ENVIRONMENT Oralce Linux 7.4 ##### STEPS TO REPRODUCE Run below YAML ``` azure_rm_loganalyticsworkspace: resource_group: "{{ main_resource_group }}" name: "{{ npe_loganalyticsworkspace_name }}" intelligence_pack: Backup: true Containers: true profile: "{{ profilename }}" ``` ##### EXPECTED RESULTS I assume it creates workspace with those features enabled ##### ACTUAL RESULTS ``` fatal: [localhost]: FAILED! => changed=false invocation: module_args: intelligence_pack: Backup: true Containers: true name: bglnpeapglogs profile: BGLNPE resource_group: BGL-NPE-ARG-APG msg: 'Unsupported parameters for (azure_rm_loganalyticsworkspace) module: intelligence_pack Supported parameters include: ad_user, adfs_authority_url, api_profile, append_tags, auth_source, cert_validation_mode, client_id, cloud_environment, intelligence_packs, location, name, password, profile, resource_group, retention_in_days, secret, sku, state, subscription_id, tags, tenant' ```
https://github.com/ansible/ansible/issues/67603
https://github.com/ansible/ansible/pull/67686
f520238d604d8de7d5f6e3ef8141933090ab0341
a173ce96302ce5f718865f3c8e8695f2a062b1c3
2020-02-20T06:41:49Z
python
2020-02-24T19:25:23Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,591
["changelogs/fragments/valdate-modules-ps-arg-util.yaml", "lib/ansible/executor/powershell/module_manifest.py", "test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/module_args.py", "test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/ps_argspec.ps1"]
ansible-test validate-modules for PS modules not loading Ansible utils when in collection
##### SUMMARY When running `ansible-test sanity --test validate-modules` on a PowerShell module in a collection it will fail to import any module util that is in Ansible itself. This causes issues if it requires access to those utils to build the arg spec as we can see with https://app.shippable.com/github/ansible-collections/ansible.windows/runs/16/5/console. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-test validate-modules ##### ANSIBLE VERSION ```paste below devel ``` ##### CONFIGURATION N/A ##### OS / ENVIRONMENT N/A - ansible-test against a collection
https://github.com/ansible/ansible/issues/67591
https://github.com/ansible/ansible/pull/67596
b54e64bbc9f039c3706137ce09f035bf4f55ac7c
36def8bf03b7d954c79bd53f690105a40c2b9bd3
2020-02-19T22:49:53Z
python
2020-02-20T04:32:21Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,574
["changelogs/fragments/67574-null_collection_dependency_list.yml", "lib/ansible/galaxy/collection.py", "test/units/galaxy/test_collection_install.py"]
Null secondary dependencies will error collection installs
##### SUMMARY If a dependency of my collection uses a specific syntax in its `galaxy.yml` then it will break installs of my own collection. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib/ansible/galaxy/collection.py lib/ansible/cli/galaxy.py ##### ANSIBLE VERSION ```paste below $ ansible --version ansible 2.10.0.dev0 config file = None configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible executable location = /Users/alancoding/.virtualenvs/ansible3/bin/ansible python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] ``` ##### CONFIGURATION defaults ##### OS / ENVIRONMENT N/A ##### STEPS TO REPRODUCE Create a collection like this: ```yaml namespace: alancoding name: bug version: 0.0.1 readme: README.md authors: - Alan Rominger <[email protected]> description: A testing collection that depends on debops collection license: - GPL-2.0-or-later license_file: '' tags: [] dependencies: softasap.redis_box: "*" repository: https://github.com/AlanCoding/collection-dependencies-demo documentation: https://github.com/AlanCoding/collection-dependencies-demo homepage: https://github.com/AlanCoding/collection-dependencies-demo issues: http://example.com/issue/tracker build_ignore: - target - output*.txt - '*.tar.gz' ``` Now build and then install it. ``` repro_bug: rm -rf bug_debops/alancoding-bug-0.0.1.tar.gz ansible-galaxy collection build bug_debops --output-path=bug_debops -vvv ANSIBLE_COLLECTIONS_PATHS=bug_debops/target ansible-galaxy collection install bug_debops/alancoding-bug-0.0.1.tar.gz -f -p bug_debops/target -vvv ``` (ignore my folder name, originally I mis-attributed the error) ##### EXPECTED RESULTS Installs. Nothing is wrong with this setup. ##### ACTUAL RESULTS ```paste below $ make repro_bug # rm -rf bug_debops/target rm -rf bug_debops/alancoding-bug-0.0.1.tar.gz ansible-galaxy collection build bug_debops --output-path=bug_debops -vvv ansible-galaxy 2.10.0.dev0 config file = None configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible executable location = /Users/alancoding/.virtualenvs/ansible3/bin/ansible-galaxy python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] No config file found; using defaults Skipping '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target' for collection build Skipping '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/galaxy.yml' for collection build Created collection for alancoding.bug at /Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/alancoding-bug-0.0.1.tar.gz ANSIBLE_COLLECTIONS_PATHS=bug_debops/target ansible-galaxy collection install bug_debops/alancoding-bug-0.0.1.tar.gz -f -p bug_debops/target -vvv ansible-galaxy 2.10.0.dev0 config file = None configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible executable location = /Users/alancoding/.virtualenvs/ansible3/bin/ansible-galaxy python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] No config file found; using defaults Found installed collection gavinfish.azuretest:1.0.3 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/gavinfish/azuretest' Found installed collection debops.roles03:2.0.1 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/debops/roles03' Found installed collection debops.roles02:2.0.1 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/debops/roles02' Found installed collection debops.debops:2.0.1 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/debops/debops' Found installed collection debops.roles01:2.0.1 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/debops/roles01' Found installed collection fragmentedpacket.netbox_modules:0.1.4 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/fragmentedpacket/netbox_modules' Found installed collection alancoding.bug:0.0.1 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/alancoding/bug' Found installed collection softasap.redis_box:0.1.0 at '/Users/alancoding/Documents/repos/collection-dependencies-demo/bug_debops/target/ansible_collections/softasap/redis_box' Process install dependency map Opened /Users/alancoding/.ansible/galaxy_token Processing requirement collection 'bug_debops/alancoding-bug-0.0.1.tar.gz' Processing requirement collection 'softasap.redis_box' - as dependency of alancoding.bug Opened /Users/alancoding/.ansible/galaxy_token Collection 'softasap.redis_box' obtained from server default https://galaxy.ansible.com/api/ ERROR! Unexpected Exception, this is probably a bug: object of type 'NoneType' has no len() the full traceback was: Traceback (most recent call last): File "/Users/alancoding/Documents/repos/ansible/bin/ansible-galaxy", line 123, in <module> exit_code = cli.run() File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 456, in run context.CLIARGS['func']() File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 944, in execute_install no_deps, force, force_deps) File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 511, in install_collections validate_certs, force, force_deps, no_deps) File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 955, in _build_dependency_map if no_deps or len(dependency_map[collection].dependencies) == 0: TypeError: object of type 'NoneType' has no len() make: *** [repro_bug] Error 250 ``` It seems that the root of this issue is: https://github.com/oops-to-devops/redis_box/blob/develop/galaxy.yml ``` cat bug_debops/target/ansible_collections/softasap/redis_box/MANIFEST.json { "collection_info": { "description": "wraps sa-redis and installs redis server", "repository": "https://github.com/oops-to-devops/redis_box", "tags": [ "softasap", "redis" ], "dependencies": null, "authors": [ "Vyacheslav Voronenko" ], "issues": "https://github.com/orgs/oops-to-devops/projects/1", "name": "redis_box", ... ``` Corresponding to: ```yaml namespace: "softasap" name: "redis_box" description: wraps sa-redis and installs redis server version: 0.2.0 readme: "Readme.md" authors: - "Vyacheslav Voronenko" dependencies: license: - "MIT" tags: - softasap - redis repository: "https://github.com/oops-to-devops/redis_box" documentation: "https://github.com/oops-to-devops/mariadb_box/blob/master/README.md" homepage: "https://www.softasap.com" issues: "https://github.com/orgs/oops-to-devops/projects/1" ``` I have confirmed that I can build this collection locally. So Galaxy shouldn't let me build a collection with this entry that errors the dependency processing, or it should handle this case.
https://github.com/ansible/ansible/issues/67574
https://github.com/ansible/ansible/pull/67575
2de4e55650d729bf8a0cb59b55f504267fa94689
cffead4631fa3795f66c6da700a9a46d6e95870f
2020-02-19T14:59:41Z
python
2020-02-20T16:23:23Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,551
["changelogs/fragments/ansible-test-help-cwd.yml", "test/integration/targets/ansible-test/collection-tests/unsupported-directory.sh", "test/lib/ansible_test/_internal/__init__.py", "test/lib/ansible_test/_internal/cli/__init__.py", "test/lib/ansible_test/_internal/cli/environments.py", "test/lib/ansible_test/_internal/cli/epilog.py", "test/lib/ansible_test/_internal/data.py", "test/lib/ansible_test/_internal/provider/layout/__init__.py", "test/lib/ansible_test/_internal/provider/layout/unsupported.py", "test/lib/ansible_test/_internal/provider/source/unsupported.py"]
ansible-test should be able to report a version
##### SUMMARY ``` (ansible_base) [vagrant@centos8 ~]$ ansible-test --version ERROR: The current working directory must be at or below: - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/ Current working directory: /home/vagrant ``` ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME ansible-test
https://github.com/ansible/ansible/issues/67551
https://github.com/ansible/ansible/pull/76866
07bcd13e6fdc545e4fcbfd9fd5c0052a063a0df6
de5f60e374524de13fe079b52282cd7a9eeabd5f
2020-02-18T21:52:37Z
python
2022-01-27T20:32:11Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,490
["docs/docsite/rst/user_guide/collections_using.rst", "lib/ansible/cli/galaxy.py", "lib/ansible/galaxy/collection.py", "test/integration/targets/ansible-galaxy/runme.sh"]
ansible-galaxy collection list should examine galaxy.yml for information
##### SUMMARY The list subcommand throws a lot of warnings about a missing version if the collection was not built and installed via an artifact. This information can often be obtained in the galaxy.yml though, so it would make sense to fallback to that ... ``` (ansible_base) [vagrant@centos8 ~]$ ansible-galaxy collection list [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/azure/azcollection' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cyberark/bizdev' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/google/cloud' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/netbox_community/ansible_modules' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/splunk/enterprise_security' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/ansible/netcommon' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/check_point/mgmt' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/f5networks/f5_modules' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/ibm/qradar' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/openstack/cloud' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/vyos/vyos' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/arista/eos' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/iosxr' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/ucs' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/aci' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/meraki' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/intersight' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/mso' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/ios' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/cisco/nxos' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/fortinet/fortios' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/junipernetworks/junos' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/purestorage/flasharray' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/purestorage/flashblade' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/awx/awx' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/community/grafana' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/community/kubernetes' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/community/amazon' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/community/vmware' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/community/general' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/gavinfish/azuretest' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/netapp/aws' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/netapp/elementsw' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/netapp/ontap' does not have a MANIFEST.json file, cannot detect version. [WARNING]: Collection at '/home/vagrant/.ansible/collections/ansible_collections/servicenow/servicenow' does not have a MANIFEST.json file, cannot detect version. # /home/vagrant/.ansible/collections/ansible_collections Collection Version -------------------------------- ------- ansible.netcommon * arista.eos * awx.awx * azure.azcollection * check_point.mgmt * cisco.aci * cisco.intersight * cisco.ios * cisco.iosxr * cisco.meraki * cisco.mso * cisco.nxos * cisco.ucs * community.amazon * community.general * community.grafana * community.kubernetes * community.vmware * cyberark.bizdev * f5networks.f5_modules * fortinet.fortios * gavinfish.azuretest * google.cloud * ibm.qradar * junipernetworks.junos * netapp.aws * netapp.elementsw * netapp.ontap * netbox_community.ansible_modules * openstack.cloud * purestorage.flasharray * purestorage.flashblade * servicenow.servicenow * splunk.enterprise_security * vyos.vyos * ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-galaxy collection list ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below devel ```
https://github.com/ansible/ansible/issues/67490
https://github.com/ansible/ansible/pull/68925
343ffaa18b63c92e182b16c3ad84b8d81ca4df69
55e29a1464fef700671096dd99bcae89e574ff2f
2020-02-17T19:27:40Z
python
2020-05-14T16:28:08Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,478
["docs/docsite/rst/user_guide/playbooks_filters.rst"]
b64encode(encoding='utf-16-le') or b64decode(encoding='utf-16-le') broken
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> `"{{ 'Test' | b64encode(encoding='utf-16-le') | b64decode(encoding='utf-16-le') }}"` doesn't return `'Test'` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME lib/ansible/plugins/filter/core.py lib/ansible/module_utils/_text.py ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.4 config file = /mnt/e/ansible_win/ansible.cfg configured module search path = [u'/home/calbertsen/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/calbertsen/.local/lib/python2.7/site-packages/ansible executable location = /home/calbertsen/.local/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Local execution on a Ubuntu host will do ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Just execute the following playbook <!--- Paste example playbooks or commands between quotes below --> ```yaml - hosts: localhost tasks: - debug: msg: "{{ 'Test' | b64encode(encoding='utf-16-le') | b64decode(encoding='utf-16-le') }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Ansible to output ```paste below PLAY [localhost] **************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************** ok: [localhost] TASK [debug] ******************************************************************************************************** ok: [localhost] => { "msg": "Test" } PLAY RECAP ********************************************************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Ansible writes: <!--- Paste verbatim command output between quotes --> ```paste below PLAY [localhost] **************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************** ok: [localhost] TASK [debug] ******************************************************************************************************** ok: [localhost] => { "msg": "敔瑳" } PLAY RECAP ********************************************************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 ```
https://github.com/ansible/ansible/issues/67478
https://github.com/ansible/ansible/pull/67488
36ed3321fd29ff578885e9c800288adda316dcb6
423a900791d2cd2494a3407e4cfba62623e758cf
2020-02-17T15:31:51Z
python
2020-02-17T19:31:03Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,459
["changelogs/fragments/67462-s3_bucket-accept-storagegrid-response.yaml", "lib/ansible/modules/cloud/amazon/s3_bucket.py"]
s3_bucket: add StorageGRID support
<!--- Verify first that your feature was not already discussed on GitHub --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Describe the new feature/improvement briefly below --> Support NetApp StorageGRID ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> s3_bucket ##### ADDITIONAL INFORMATION <!--- Describe how the feature would be used, why it is needed and what it would solve --> StorageGRID provides S3 REST API, but it's not fully-compatible with AWS API. Current StorageGRID 11.3 does not have Requester Pays and tags feature, furthermore, the API returns XNotImplemented error instead of the standard NotImplemented error. http://docs.netapp.com/sgws-113/topic/com.netapp.doc.sg-s3/GUID-6E737B19-441A-495F-A35C-9BDC8BA1A4A2.html Here is the error message that s3_bucket module in ansible 2.9.5 outputs: <!--- Paste example playbooks or commands between quotes below --> ``` An exception occurred during task execution. To see the full traceback, use -vvv. The error was: botocore.exceptions.ClientError: An error occurred (XNotImplemented) when calling the GetBucketRequestPayment operation: The request you provided implies functionality that is not implemented. fatal: [localhost]: FAILED! => {"boto3_version": "1.12.0", "botocore_version": "1.15.0", "changed": false, "error": {"code": "XNotImplemented", "message": "The request you provided implies functionality that is not implemented.", "resource": "/ansible-bucket-0217?requestPayment"}, "msg": "Failed to get bucket request payment: An error occurred (XNotImplemented) when calling the GetBucketRequestPayment operation: The request you provided implies functionality that is not implemented.", "resource_actions": ["objectstorage-s:CreateBucket", "objectstorage-s:GetBucketVersioning", "objectstorage-s:ListBuckets", "objectstorage-s:GetBucketRequestPayment", "objectstorage-s:HeadBucket"], "response_metadata": {"host_id": "12889128", "http_headers": {"cache-control": "no-cache", "connection": "keep-alive", "content-length": "267", "content-type": "application/xml", "date": "Mon, 17 Feb 2020 08:15:45 GMT", "x-amz-id-2": "12889128", "x-amz-request-id": "1581927345613682", "http_status_code": 501, "request_id": "1581927345613682", "retry_attempts": 0}} ``` <!--- HINT: You can also paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/67459
https://github.com/ansible/ansible/pull/67462
c5ec0fcb34af3dba4fdc6afcd1bd52ab617cc0c9
d317cc71c7086ecee74974ddc8aa71b4830ff998
2020-02-17T09:53:35Z
python
2020-02-24T20:00:38Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,455
["lib/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py"]
Nxos_l2_interfaces module fails with traceback if allowed vlans are not preconfigured
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> Nxos_l2_interfaces module fails with a traceback if allowed vlans are not preconfigured on interfaces, raised from PR fix #66517 ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> nxos_l2_interfaces ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below 2.9 ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> macos ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Try running the module for configuring allowed vlans for the 1st time. <!--- Paste example playbooks or commands between quotes below --> ```yaml - nxos_l2_interfaces: config: - name: Ethernet2/2 mode: trunk trunk: allowed_vlans: "10-12" state: merged ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> If allowed vlans are not preconfigured, the module should go ahead and configure the user-provided allowed vlans ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> If allowed vlans are not preconfigured, it fails with below traceback <!--- Paste verbatim command output between quotes --> ```paste below The full traceback is: Traceback (most recent call last): File "/Users/sjaiswal/.ansible/tmp/ansible-local-34163u8gljr/ansible-tmp-1581928344.74-175330388156897/AnsiballZ_nxos_l2_interfaces.py", line 102, in <module> _ansiballz_main() File "/Users/sjaiswal/.ansible/tmp/ansible-local-34163u8gljr/ansible-tmp-1581928344.74-175330388156897/AnsiballZ_nxos_l2_interfaces.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/Users/sjaiswal/.ansible/tmp/ansible-local-34163u8gljr/ansible-tmp-1581928344.74-175330388156897/AnsiballZ_nxos_l2_interfaces.py", line 40, in invoke_module runpy.run_module(mod_name='ansible.modules.network.nxos.nxos_l2_interfaces', init_globals=None, run_name='__main__', alter_sys=True) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 188, in run_module fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/modules/network/nxos/nxos_l2_interfaces.py", line 283, in <module> File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/modules/network/nxos/nxos_l2_interfaces.py", line 278, in main File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py", line 69, in execute_module File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py", line 103, in set_config File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py", line 136, in set_state File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py", line 205, in _state_merged File "/var/folders/n7/73s22vps0ls44ng__t8mwtl40000gn/T/ansible_nxos_l2_interfaces_payload_QGTQ63/ansible_nxos_l2_interfaces_payload.zip/ansible/module_utils/network/nxos/config/l2_interfaces/l2_interfaces.py", line 287, in set_commands KeyError: 'allowed_vlans' ```
https://github.com/ansible/ansible/issues/67455
https://github.com/ansible/ansible/pull/67457
0d72d2d4d21888cced5dce658384810bfde52f09
f292f21d867e7ab48b9021ee4aa2612f049e170e
2020-02-17T08:39:35Z
python
2020-02-24T12:14:21Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,445
["changelogs/fragments/72546-unarchive-returndoc.yml", "lib/ansible/modules/unarchive.py"]
unarchive module: missing documentation on return values
##### SUMMARY The unarchive module is missing documentation on its return values. Only the `list_files` option mentions it at all: > If set to True, return the list of files that are contained in the tarball. It does not mention how this list is returned (Spoiler: It's in the `files` key, as a list of file names). A `RETURN` section should be added to the module documentation. Ideally, the `EXAMPLES` section should be extended to include one or two examples that use the return values somehow. ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME modules/files/unarchive.py ##### ANSIBLE VERSION ``` ansible 2.9.2 config file = None configured module search path = ['/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib64/python3.6/site-packages/ansible executable location = /usr/lib/python-exec/python3.6/ansible python version = 3.6.9 (default, Oct 5 2019, 11:39:46) [GCC 8.3.0] ``` ##### CONFIGURATION not relevant ##### OS / ENVIRONMENT not relevant ##### ADDITIONAL INFORMATION <!--- Describe how this improves the documentation, e.g. before/after situation or screenshots --> <!--- HINT: You can paste gist.github.com links for larger files -->
https://github.com/ansible/ansible/issues/67445
https://github.com/ansible/ansible/pull/72546
a5eb788578b01672c5a8dc1fd04b23aaea9ff828
44a38c9f33e454370d6834304200023b7a4a39ad
2020-02-16T08:33:13Z
python
2020-11-10T22:27:39Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,377
["changelogs/fragments/67418-postgresql_set_converts_value_to_uppercase.yml", "lib/ansible/modules/database/postgresql/postgresql_set.py", "test/integration/targets/postgresql_set/tasks/postgresql_set_initial.yml"]
postgresql_set converts value to uppercase if "mb" or "gb" or "tb" is in the string
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> in postgresql_set.py:303 the value to be set is converted to uppercase if it contains "mb" or "gb" or "tb". for example an archive command will fail if the case is not correct. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> postgresql_set.py:303 ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.8.1 python version = 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> debian stretch ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml postgresql_set: name: 'archive_command' value: 'test ! -f /mnt/postgres/mb/%f && cp %p /mnt/postgres/mb/%f' ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> grep archive_command postgresql.auto.conf: ``` archive_command = 'test ! -f /mnt/postgres/mb/%f && cp %p /mnt/postgres/mb/%f' ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> grep archive_command postgresql.auto.conf: ``` archive_command = 'TEST ! -F /MNT/POSTGRES/MB/%F && CP %P /MNT/POSTGRES/MB/%F' ``` <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/67377
https://github.com/ansible/ansible/pull/67418
a4f5c2e9934a178e90b26ccd911de12851a4999e
59bcc9f739d40c35ec1f471dbd7f30934bccfd94
2020-02-13T09:49:51Z
python
2020-02-15T13:03:53Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,365
["changelogs/fragments/67365-role-list-role-name-in-path.yml", "lib/ansible/galaxy/role.py", "test/integration/targets/ansible-galaxy/runme.sh"]
ansible-galaxy list is not listing certain valid roles
##### SUMMARY I am trying to see what roles Ansible will pick up from a given roles directory, and it seems like it's only picking up roles that I've downloaded from Galaxy, not any other roles (like custom ones I've created via `ansible-galaxy init`). ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-galaxy ##### ANSIBLE VERSION ``` ansible 2.9.4 config file = /etc/ansible/ansible.cfg configured module search path = [u'/Users/jgeerling/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.17 (default, Feb 9 2020, 19:49:15) [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.17)] ``` ##### CONFIGURATION ``` ANSIBLE_NOCOWS(/etc/ansible/ansible.cfg) = True ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True ANSIBLE_SSH_CONTROL_PATH(/etc/ansible/ansible.cfg) = /tmp/ansible-ssh-%%h-%%p-%%r DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 20 DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/hosts'] DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/Users/jgeerling/Dropbox/VMs/roles'] RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT macOS Catalina, Ansible installed via `pip3` ##### STEPS TO REPRODUCE ``` $ mkdir testing-roles && cd testing-roles $ $ ANSIBLE_ROLES_PATH=$(pwd) ansible-galaxy list # /Users/jgeerling/Downloads/testing-roles (no roles listed) $ ansible-galaxy init testing - Role testing was created successfully $ ANSIBLE_ROLES_PATH=$(pwd) ansible-galaxy list # /Users/jgeerling/Downloads/testing-roles (still no roles listed) ``` ##### EXPECTED RESULTS I would expect the new `testing` role would be listed. ##### ACTUAL RESULTS The new `testing` role is not listed. ##### ADDITIONAL INFO After failing the above scenario, I installed a role from Galaxy, and it _was_ listed: ``` $ ansible-galaxy install -p ./ geerlingguy.php - downloading role 'php', owned by geerlingguy - downloading role from https://github.com/geerlingguy/ansible-role-php/archive/3.7.0.tar.gz - extracting geerlingguy.php to /Users/jgeerling/Downloads/testing-roles/geerlingguy.php - geerlingguy.php (3.7.0) was installed successfully $ ANSIBLE_ROLES_PATH=$(pwd) ansible-galaxy list # /Users/jgeerling/Downloads/testing-roles - geerlingguy.php, 3.7.0 ```
https://github.com/ansible/ansible/issues/67365
https://github.com/ansible/ansible/pull/67391
343de73f2d3d49068e8bddc53f94e94d71e567b9
c64202a49563fefb35bd8de59bceb0b3b2fa5fa1
2020-02-12T22:45:30Z
python
2020-02-17T21:16:14Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,357
["lib/ansible/modules/crypto/acme/acme_certificate_revoke.py", "lib/ansible/modules/crypto/openssl_privatekey.py", "lib/ansible/modules/net_tools/hetzner_firewall.py", "lib/ansible/plugins/doc_fragments/docker.py"]
Fix batch of broken links in module docs
We're trying to fix as many broken links as possible before modules move into collections. This is the batch of broken links on some Ansible modules. NOTE: the link checker sometimes reports an error where a link actually works. Ignore those if you find them. ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ###### BROKEN LINKS ~~https://docs.ansible.com/ansible/latest/modules/openssl_privatekey_module.html#openssl-privatekey-module~~ ~~├─BROKEN─ https://en.wikipedia.org/wiki/RSA_(cryptosystem~~ ~~https://docs.ansible.com/ansible/devel/modules/elb_target_info_module.html#elb-target-info-module~~ ~~└─BROKEN─ https://boto3.readthedocs.io/en/latest/%20reference/services/elbv2.html#ElasticLoadBalancingv2.Client.describe_target_health~~ ~~https://docs.ansible.com/ansible/devel/plugins/lookup/laps_password.html~~ ~~├─BROKEN─ https://keathmilligan.net/python-ldap-and-macos/~~ ~~https://docs.ansible.com/ansible/devel/modules/acme_certificate_revoke_module.html#acme-certificate-revoke-module~~ ~~─BROKEN─ http://0.0.0.0:1337/modules/Section%205.3.1%20of%20RFC5280~~ https://docs.ansible.com/ansible/devel/modules/airbrake_deployment_module.html#airbrake-deployment-module └─BROKEN─ http://help.airbrake.io/kb/api-2/deploy-tracking https://docs.ansible.com/ansible/devel/modules/consul_module.html#consul-module ├─BROKEN─ http://0.0.0.0:1337/v1/agent/service/register ~~https://docs.ansible.com/ansible/devel/modules/hetzner_firewall_module.html#hetzner-firewall-module~~ ~~─BROKEN─ http://0.0.0.0:1337/modules/the%20documentation,https:/wiki.hetzner.de/index.php/Robot_Firewall/en#Parameter~~ ~~https://docs.ansible.com/ansible/devel/modules/keycloak_client_module.html#keycloak-client-module~~ ~~├─BROKEN─ http://www.keycloak.org/docs-api/3.3/rest-api/~~ ~~├─BROKEN─ http://www.keycloak.org/docs-api/3.3/rest-api/index.html#_resourceserverrepresentation~~ ~~https://docs.ansible.com/ansible/devel/modules/keycloak_clienttemplate_module.html#keycloak-clienttemplate-module~~ ~~├─BROKEN─ http://www.keycloak.org/docs-api/3.3/rest-api/~~ ~~https://docs.ansible.com/ansible/devel/modules/keycloak_group_module.html#keycloak-group-module~~ ~~├─BROKEN─ http://www.keycloak.org/docs-api/3.3/rest-api/~~ https://docs.ansible.com/ansible/devel/modules/meraki_network_module.html#meraki-network-module ├─BROKEN─ http://0.0.0.0:1337/modules/my.meraki.com ~~https://docs.ansible.com/ansible/devel/modules/os_ironic_module.html#os-ironic-module~~ ~~├─BROKEN─ https://docs.openstack.org/ironic/latest/install/include/root-device-hints.html~~ ~~https://docs.ansible.com/ansible/devel/modules/ovh_ip_failover_module.html#ovh-ip-failover-module~~ ~~├─BROKEN─ https://eu.api.ovh.com/g934.first_step_with_api~~ ~~https://docs.ansible.com/ansible/devel/modules/ovh_ip_loadbalancing_backend_module.html#ovh-ip-loadbalancing-backend-module~~ ~~├─BROKEN─ https://eu.api.ovh.com/g934.first_step_with_api~~ ~~https://docs.ansible.com/ansible/devel/modules/packet_volume_attachment_module.html#packet-volume-attachment-module~~ ~~├─BROKEN─ https://www.packet.net/developers/api/volumeattachments/~~ https://docs.ansible.com/ansible/devel/modules/postgresql_info_module.html#postgresql-info-module ├─BROKEN─ https://www.postgresql.org/docs/current/catalog-pg-replication-slots.html ~~https://docs.ansible.com/ansible/devel/modules/postgresql_table_module.html#postgresql-table-module~~ ~~├─BROKEN─ http://0.0.0.0:1337/modules/postgresql.org/docs/current/datatype.html~~ https://docs.ansible.com/ansible/devel/modules/win_credential_module.html#win-credential-module ├─BROKEN─ https://docs.microsoft.com/en-us/windows/desktop/api/wincred/ns-wincred-_credentiala https://docs.ansible.com/ansible/devel/modules/win_dsc_module.html#win-dsc-module ├─BROKEN─ https://docs.microsoft.com/en-us/powershell/dsc/resources/resources https://docs.ansible.com/ansible/devel/modules/win_inet_proxy_module.html#win-inet-proxy-module ├─BROKEN─ http://0.0.0.0:1337/modules/host https://docs.ansible.com/ansible/devel/modules/win_webpicmd_module.html#win-webpicmd-module └─BROKEN─ http://www.iis.net/learn/install/web-platform-installer/web-platform-installer-v4-command-line-webpicmdexe-rtw-release ~~https://docs.ansible.com/ansible/devel/modules/xenserver_guest_module.html#xenserver-guest-module~~ ~~├─BROKEN─ https://raw.githubusercontent.com/xapi-project/xen-api/master/scripts/examples/python/XenAPI.py~~ ~~https://docs.ansible.com/ansible/devel/modules/xenserver_guest_powerstate_module.html#xenserver-guest-powerstate-module~~ ~~├─BROKEN─ https://raw.githubusercontent.com/xapi-project/xen-api/master/scripts/examples/python/XenAPI.py~~ ~~https://docs.ansible.com/ansible/devel/modules/xenserver_guest_info_module.html#xenserver-guest-info-module~~ ~~├─BROKEN─ https://raw.githubusercontent.com/xapi-project/xen-api/master/scripts/examples/python/XenAPI.py~~ https://docs.ansible.com/ansible/devel/modules/zabbix_map_module.html#zabbix-map-module ├─BROKEN─ https://en.wikipedia.org/wiki/DOT_(graph_description_language
https://github.com/ansible/ansible/issues/67357
https://github.com/ansible/ansible/pull/67360
53e043b5febd30f258a233f51b180a543300151b
11e75b0af256f9f09c54365282a4969a5fe0390e
2020-02-12T20:18:07Z
python
2020-02-12T21:41:40Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,355
["lib/ansible/modules/crypto/acme/acme_certificate_revoke.py", "lib/ansible/modules/crypto/openssl_privatekey.py", "lib/ansible/modules/net_tools/hetzner_firewall.py", "lib/ansible/plugins/doc_fragments/docker.py"]
Fix broken links in docker modules
We're trying to fix as many broken links as possible before modules move into collections. This is the batch of broken links on docker modules. NOTE: the link checker sometimes reports an error where a link actually works. Ignore those if you find them. ##### ISSUE TYPE - Documentation Report ##### COMPONENT NAME <!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure --> docs.ansible.com ###### BROKEN LINKS https://docs.ansible.com/ansible/devel/modules/docker_compose_module.html#docker-compose-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_image_module.html#docker-image-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_config_module.html#docker-config-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_container_info_module.html#docker-container-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_host_info_module.html#docker-host-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_image_info_module.html#docker-image-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_login_module.html#docker-login-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_network_module.html#docker-network-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_network_info_module.html#docker-network-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_node_module.html#docker-node-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_node_info_module.html#docker-node-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_prune_module.html#docker-prune-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_secret_module.html#docker-secret-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_swarm_module.html#docker-swarm-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_swarm_info_module.html#docker-swarm-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_swarm_service_module.html#docker-swarm-service-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_swarm_service_info_module.html#docker-swarm-service-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_volume_module.html#docker-volume-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/ https://docs.ansible.com/ansible/devel/modules/docker_volume_info_module.html#docker-volume-info-module ├─BROKEN─ https://docker-py.readthedocs.io/en/stable/machine/
https://github.com/ansible/ansible/issues/67355
https://github.com/ansible/ansible/pull/67360
53e043b5febd30f258a233f51b180a543300151b
11e75b0af256f9f09c54365282a4969a5fe0390e
2020-02-12T20:13:45Z
python
2020-02-12T21:41:40Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,347
["changelogs/fragments/67353-docker_login-permissions.yml", "lib/ansible/modules/cloud/docker/docker_login.py", "test/integration/targets/docker_login/tasks/tests/docker_login.yml"]
docker_login not create config.json file with correct permission
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> The module docker_login save the config.json with 644 permission instead of 600 (default by docker login command) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> docker_login ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.8.3 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/gael/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Ubuntu 18.04 server ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Log into private registry and force re-authorization docker_login: registry: "{{ registry_host }}" username: "{{ registry_user }}" password: "{{ vault_registry_password }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ll /root/.docker/config.json -rw------- 1 root root 181 Jan 10 10:53 /root/.docker/config.json ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> ll /root/.docker/config.json -rw-r--r-- 1 root root 181 Jan 10 10:53 /root/.docker/config.json <!--- Paste verbatim command output between quotes --> ```paste below ```
https://github.com/ansible/ansible/issues/67347
https://github.com/ansible/ansible/pull/67353
25181e1b7021430f495f249dc3b9adf37ae3afd3
55cb8c53887c081f645cf9853ace4f94f56d99a9
2020-02-12T17:58:05Z
python
2020-02-15T14:38:58Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,313
["lib/ansible/module_utils/network/eos/config/vlans/vlans.py", "test/integration/targets/eos_vlans/tests/cli/replaced.yaml", "test/units/modules/network/eos/test_eos_vlans.py"]
eos_vlans using state parameter replaced is giving odd behavior
##### SUMMARY I assume that the vlan-id is the winning key that will replace other data. I am seeing some odd behavior where if I have something like on-box before ``` - vlan_id: 80 ``` on-box after ``` - vlan_id: 80 ``` but i am actually sending a key,value name: sean ``` commands: - vlan 80 - name sean - no name ``` but for some reason it nos the name.... ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME eos_vlans ##### ANSIBLE VERSION ```paste below ansible 2.9.2 config file = /home/student1/.ansible.cfg configured module search path = [u'/home/student1/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below DEFAULT_HOST_LIST(/home/student1/.ansible.cfg) = [u'/home/student1/networking-workshop/lab_inventory/ DEFAULT_STDOUT_CALLBACK(/home/student1/.ansible.cfg) = yaml DEFAULT_TIMEOUT(/home/student1/.ansible.cfg) = 60 DEPRECATION_WARNINGS(/home/student1/.ansible.cfg) = False HOST_KEY_CHECKING(/home/student1/.ansible.cfg) = False PERSISTENT_COMMAND_TIMEOUT(/home/student1/.ansible.cfg) = 200 PERSISTENT_CONNECT_TIMEOUT(/home/student1/.ansible.cfg) = 200 RETRY_FILES_ENABLED(/home/student1/.ansible.cfg) = False ``` ##### OS / ENVIRONMENT ``` [student1@ansible playbooks]$ cat /etc/*release NAME="Red Hat Enterprise Linux Server" VERSION="7.7 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.7" PRETTY_NAME="Red Hat Enterprise Linux Server 7.7 (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.7 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.7" Red Hat Enterprise Linux Server release 7.7 (Maipo) Red Hat Enterprise Linux Server release 7.7 (Maipo) ``` ##### STEPS TO REPRODUCE https://gist.github.com/IPvSean/028b36bab5783dfd4f4a01a2c4063613 ##### EXPECTED RESULTS vlan-id would win and over-ride ##### ACTUAL RESULTS the vlan name is being stripped out for some reason, see the gist link above
https://github.com/ansible/ansible/issues/67313
https://github.com/ansible/ansible/pull/67318
cd146b836e032df785ecd9eb711c6ef23c2228b8
4ec1437212b2fb3c313e44ed5a76b105f2151622
2020-02-11T18:17:40Z
python
2020-02-12T16:12:12Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,307
["changelogs/fragments/69640-file_should_warn_when_path_and_owner_or_group_dont_exist.yml", "lib/ansible/modules/file.py", "test/integration/targets/file/tasks/main.yml"]
file module fails in check mode if directory exists but user or group does not.
##### SUMMARY In check mode, when using the file module to create a directory, if the directory already exists but the requested owner or group do not, the module will fail. I encountered this when running a playbook in check mode that creates a new user and changes the ownership of an existing directory. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME file ##### ANSIBLE VERSION ``` ansible 2.9.3 config file = /home/nepeta/wip/lockss-playbook/ansible.cfg configured module search path = ['/home/nepeta/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION ``` ``` ##### OS / ENVIRONMENT Fedora 31 host ##### STEPS TO REPRODUCE Run the following playbook in check mode (`ansible-playbook demo.playbook.yml -C`): ```yaml # demo.playbook.yml--- - hosts: localhost tasks: - name: Create user. user: name: notauser state: present - name: Task succeeds in check mode. file: path: /notadirectory state: directory owner: notauser - name: Task fails in check mode. file: path: /usr state: directory owner: notauser ``` ##### EXPECTED RESULTS I expect the module to skip the lookup of the user or group if it doesn't exist and to report the task as changed. ##### ACTUAL RESULTS ``` TASK [Create user.] *********************************************************************************************************************** changed: [localhost] TASK [Task succeeds in check mode.] ******************************************************************************************************* changed: [localhost] TASK [Task fails in check mode.] ********************************************************************************************************** fatal: [localhost]: FAILED! => changed=false gid: 0 group: root mode: '0755' msg: 'chown failed: failed to look up user notauser' owner: root path: /usr secontext: system_u:object_r:usr_t:s0 size: 4096 state: directory uid: 0 ```
https://github.com/ansible/ansible/issues/67307
https://github.com/ansible/ansible/pull/69640
a3b954e5c96bbdb48241e4d4ed632cb445750461
d398a4b4f0999e3fc2c22e98a1b5b1253d031fb5
2020-02-11T15:38:40Z
python
2020-09-03T13:11:50Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,278
["changelogs/fragments/win_credential-wildcard.yaml", "lib/ansible/modules/windows/win_credential.ps1", "test/integration/targets/win_credential/tasks/tests.yml"]
win_credential unable to use the wildcard character
##### SUMMARY When using the win_credential module, domain suffixes with wildcards will error saying "The parameter is incorrect" ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME win_credential ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.4 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/zinkj/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ``` ##### CONFIGURATION (Empty) ##### OS / ENVIRONMENT Target W10 Enterprise 1909 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ``` - name: Set Credential Manager for Domain become: yes vars: ansible_become_pass: '{{ dev_services_password }}' ansible_become_user: '{{ dev_services_user }}' win_credential: name: '*.domain.com' type: domain_password username: '{{ dev_services_user }}' secret: '{{ dev_services_password }}' persistence: enterprise state: present ``` ##### EXPECTED RESULTS Windows Credential manager entry added for '*.domain.com" ##### ACTUAL RESULTS ``` null: TASK [bootstrap : Set Credential Manager for Domain] *************************** null: task path: /mnt/c/regfarm/framework/revitfarm/setup/node/ansible/roles/bootstrap/tasks/bootstrap_tasks.yml:1 null: Monday 10 February 2020 10:01:08 -0500 (0:00:11.313) 0:00:11.393 ******* null: Monday 10 February 2020 10:01:08 -0500 (0:00:11.313) 0:00:11.392 ******* null: Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_credential.ps1 null: Pipelining is enabled. null: <127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: <sensitive> null: <127.0.0.1> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=58011 -o 'IdentityFile="/tmp/ansible-key214012297"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="<sensitive>"' -o ConnectTimeout=1800 -o ControlPath=/home/zinkj/.ansible/cp/5138928487 127.0.0.1 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcATQBBAFgAdwBCADMAQQBIAEkAQQBZAFEAQgB3AEEASABBAEEAWgBRAEIAeQBBAEYAOABBAGMAdwBCADAAQQBIAEkAQQBMAGcAQgBUAEEASABBAEEAYgBBAEIAcABBAEgAUQBBAEsAQQBCAEEAQQBDAGcAQQBJAGcAQgBnAEEARABBAEEAWQBBAEEAdwBBAEcAQQBBAE0AQQBCAGcAQQBEAEEAQQBJAGcAQQBwAEEAQwB3AEEASQBBAEEAeQBBAEMAdwBBAEkAQQBCAGIAQQBGAE0AQQBkAEEAQgB5AEEARwBrAEEAYgBnAEIAbgBBAEYATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBQAEEASABBAEEAZABBAEIAcABBAEcAOABBAGIAZwBCAHoAQQBGADAAQQBPAGcAQQA2AEEARgBJAEEAWgBRAEIAdABBAEcAOABBAGQAZwBCAGwAQQBFAFUAQQBiAFEAQgB3AEEASABRAEEAZQBRAEIARgBBAEcANABBAGQAQQBCAHkAQQBHAGsAQQBaAFEAQgB6AEEAQwBrAEEAQwBnAEIASgBBAEcAWQBBAEkAQQBBAG8AQQBDADAAQQBiAGcAQgB2AEEASABRAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAHUAQQBFAHcAQQBaAFEAQgB1AEEARwBjAEEAZABBAEIAbwBBAEMAQQBBAEwAUQBCAGwAQQBIAEUAQQBJAEEAQQB5AEEAQwBrAEEASQBBAEIANwBBAEMAQQBBAGQAQQBCAG8AQQBIAEkAQQBiAHcAQgAzAEEAQwBBAEEASQBnAEIAcABBAEcANABBAGQAZwBCAGgAQQBHAHcAQQBhAFEAQgBrAEEAQwBBAEEAYwBBAEIAaABBAEgAawBBAGIAQQBCAHYAQQBHAEUAQQBaAEEAQQBpAEEAQwBBAEEAZgBRAEEASwBBAEYATQBBAFoAUQBCADAAQQBDADAAQQBWAGcAQgBoAEEASABJAEEAYQBRAEIAaABBAEcASQBBAGIAQQBCAGwAQQBDAEEAQQBMAFEAQgBPAEEARwBFAEEAYgBRAEIAbABBAEMAQQBBAGEAZwBCAHoAQQBHADgAQQBiAGcAQgBmAEEASABJAEEAWQBRAEIAMwBBAEMAQQBBAEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA=' null: <127.0.0.1> (1, '{"exception":"Exception calling \\"Write\\" with \\"1\\" argument(s): \\"CredWriteW(*) failed - The parameter is incorrect (Win32 Error Code 87: 0x00000057)\\"\\nAt line:602 char:13\\r\\n+ $new_credential.Write($false)\\r\\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n + CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException\\n + FullyQualifiedErrorId : Win32Exception\\r\\n\\r\\nScriptStackTrace:\\r\\nat \\u003cScriptBlock\\u003e, \\u003cNo file\\u003e: line 602\\r\\n","msg":"Unhandled exception while executing module: Exception calling \\"Write\\" with \\"1\\" argument(s): \\"CredWriteW(*) failed - The parameter is incorrect (Win32 Error Code 87: 0x00000057)\\"","failed":true}\r\n', 'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 104\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">#&lt; CLIXML_x000D__x000A_&lt;Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"&gt;&lt;Obj S="progress" RefId="0"&gt;&lt;TN RefId="0"&gt;&lt;T&gt;System.Management.Automation.PSCustomObject&lt;/T&gt;&lt;T&gt;System.Object&lt;/T&gt;&lt;/TN&gt;&lt;MS&gt;&lt;I64 N="SourceId"&gt;1&lt;/I64&gt;&lt;PR N="Record"&gt;&lt;AV&gt;Preparing modules for first use.&lt;/AV&gt;&lt;AI&gt;0&lt;/AI&gt;&lt;Nil /&gt;&lt;PI&gt;-1&lt;/PI&gt;&lt;PC&gt;-1&lt;/PC&gt;&lt;T&gt;Completed&lt;/T&gt;&lt;SR&gt;-1&lt;/SR&gt;&lt;SD&gt; &lt;/SD&gt;&lt;/PR&gt;&lt;/MS&gt;&lt;/Obj&gt;&lt;/Objs&gt;_x000D__x000A_</S></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n') ``` ##### ADDITIONAL INFO Verified on the local machine the follow command works as expected: cmdkey /add:* /user:foo /pass:bar Working around the issue by using win_command via cmdkey as above: ``` - name: Set Credential Manager for Domain become: yes vars: ansible_become_pass: '{{ dev_services_password }}' ansible_become_user: '{{ dev_services_user }}' win_command: cmdkey /add:*.domain.com /user:{{ dev_services_domain }}\{{ dev_services_user }} /pass:{{ dev_services_password }} ```
https://github.com/ansible/ansible/issues/67278
https://github.com/ansible/ansible/pull/67549
650c3c5df32af3f5faf345ce0fdfc49febf83636
d7059881a264dcadc16ddbc264f96aa9cbf8020c
2020-02-10T15:12:22Z
python
2020-02-18T21:43:04Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,274
["changelogs/fragments/67500-fix-edgeos-config-single-quote-stripping.yaml", "lib/ansible/modules/network/edgeos/edgeos_config.py", "test/units/modules/network/edgeos/fixtures/edgeos_config_config.cfg", "test/units/modules/network/edgeos/fixtures/edgeos_config_src.cfg", "test/units/modules/network/edgeos/fixtures/edgeos_config_src_brackets.cfg", "test/units/modules/network/edgeos/test_edgeos_config.py"]
Edgeos config module handling of quotation marks
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY The current implementation of the edgeos_config module has changing behaviour for handling the stripping of single quotation marks. So in review of this [line](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/network/edgeos/edgeos_config.py#L197) the `item` var is defined with stripped single quotes. This is then used for a series of comparisons ending with the original non-stripped `line` var defined in the for loop being added to the `updates` list. Though on line [213](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/network/edgeos/edgeos_config.py#L213) it uses `item`. This introduces a change of behaviour described below. A potential method of addressing this is to use double quotes. Unfortunately these will be escaped meaning that Ansible will always report a change on existing text values. It does work for empty values like `plaintext-password` ``` set system login user test full-name "test user" ``` results in ``` "set system login user test full-name test \"user\"" ``` Another potential resolution of this is to remove the white space stripping all together and put the onus on correct command syntax in the hands of the user. When passing a single quote within a value Ansible correctly returns a valid error code ``` set system login user test full-name "test' user" ``` Results in: ``` Cannot use the single quote (') character in a value string ``` The only issue which the original stripping might of been added to address is when a hanging single quote is left. So if an invalid command line is passed through, Ansible will hang on the network connection waiting on input. ``` set system login user test full-name 'test' user' ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> [EdgeOS (edgeos_config) network module](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/network/edgeos/edgeos_config.py) ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.2 ansible 2.10.0.dev0 ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Edgerouter 3/4 ##### STEPS TO REPRODUCE The following will be successfully added to the updates list including single quotes: ``` set system login user test level admin set system login user test authentication encrypted-password <encrypted-value> set system login user test authentication plaintext-password '' set system login user test full-name 'test user' ``` With a delete command though it will be added via the delete logic stripping the single quotes: ``` delete system login user test set system login user test level admin set system login user test authentication encrypted-password <encrypted-value> set system login user test authentication plaintext-password '' set system login user test full-name 'test user' ``` ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> Both with and without a delete the config should be handled the same ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> Adding the delete command results in Ansible failing in two ways. The `plaintext-password` will be invalid for having no value. The `full-name` will be invalid for having two values: ``` set system login user test authentication plaintext-password set system login user test full-name test user ```
https://github.com/ansible/ansible/issues/67274
https://github.com/ansible/ansible/pull/67500
eab914426bc958c0eb9adfa26b3856d1be0f49ae
bd26b6c0b4c71be356efa727dc39396b41ba2b9a
2020-02-10T14:24:37Z
python
2020-02-24T18:45:19Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,273
["changelogs/fragments/win_timezone-Allow-dstoff.yml", "lib/ansible/modules/windows/win_timezone.ps1", "lib/ansible/modules/windows/win_timezone.py", "test/integration/targets/win_timezone/tasks/tests.yml"]
win_timezone cannot set dstoff timezones
##### SUMMARY When attempting to use the win_timezone module to set a timezone to "Eastern Standard Time_dstoff" an error displays saying it is not supported. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME win_timezone ##### ANSIBLE VERSION ansible 2.9.3 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/zinkj/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ##### CONFIGURATION (Empty) ##### OS / ENVIRONMENT Target OS: Win10 Enterprise Build 1909 ##### STEPS TO REPRODUCE ``` - name: Set TimeZone win_timezone: timezone: 'Eastern Standard Time_dstoff' ``` ##### EXPECTED RESULTS Timezone is changed. ##### ACTUAL RESULTS Timezone fails to change. ``` null: TASK [bootstrap : Set TimeZone] ************************************************ null: task path: /mnt/c/regfarm/framework/revitfarm/setup/node/ansible/roles/bootstrap/tasks/bootstrap_tasks.yml:1 null: Monday 10 February 2020 08:52:14 -0500 (0:00:09.675) 0:00:09.751 ******* null: Monday 10 February 2020 08:52:14 -0500 (0:00:09.675) 0:00:09.750 ******* null: Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_timezone.ps1 null: Pipelining is enabled. null: <127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: <sensitive> null: <127.0.0.1> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=56707 -o 'IdentityFile="/tmp/ansible-key277440362"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="<sensitive>"' -o ConnectTimeout=1800 -o ControlPath=/home/zinkj/.ansible/cp/d221cde98b 127.0.0.1 'chcp.com 65001 > $null ; PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQBhAFEAQgB1AEEARwBjAEEAQwBnAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAGcAQQBEADAAQQBJAEEAQQBrAEEARwBVAEEAZQBBAEIAbABBAEcATQBBAFgAdwBCADMAQQBIAEkAQQBZAFEAQgB3AEEASABBAEEAWgBRAEIAeQBBAEYAOABBAGMAdwBCADAAQQBIAEkAQQBMAGcAQgBUAEEASABBAEEAYgBBAEIAcABBAEgAUQBBAEsAQQBCAEEAQQBDAGcAQQBJAGcAQgBnAEEARABBAEEAWQBBAEEAdwBBAEcAQQBBAE0AQQBCAGcAQQBEAEEAQQBJAGcAQQBwAEEAQwB3AEEASQBBAEEAeQBBAEMAdwBBAEkAQQBCAGIAQQBGAE0AQQBkAEEAQgB5AEEARwBrAEEAYgBnAEIAbgBBAEYATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBQAEEASABBAEEAZABBAEIAcABBAEcAOABBAGIAZwBCAHoAQQBGADAAQQBPAGcAQQA2AEEARgBJAEEAWgBRAEIAdABBAEcAOABBAGQAZwBCAGwAQQBFAFUAQQBiAFEAQgB3AEEASABRAEEAZQBRAEIARgBBAEcANABBAGQAQQBCAHkAQQBHAGsAQQBaAFEAQgB6AEEAQwBrAEEAQwBnAEIASgBBAEcAWQBBAEkAQQBBAG8AQQBDADAAQQBiAGcAQgB2AEEASABRAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBBAHUAQQBFAHcAQQBaAFEAQgB1AEEARwBjAEEAZABBAEIAbwBBAEMAQQBBAEwAUQBCAGwAQQBIAEUAQQBJAEEAQQB5AEEAQwBrAEEASQBBAEIANwBBAEMAQQBBAGQAQQBCAG8AQQBIAEkAQQBiAHcAQgAzAEEAQwBBAEEASQBnAEIAcABBAEcANABBAGQAZwBCAGgAQQBHAHcAQQBhAFEAQgBrAEEAQwBBAEEAYwBBAEIAaABBAEgAawBBAGIAQQBCAHYAQQBHAEUAQQBaAEEAQQBpAEEAQwBBAEEAZgBRAEEASwBBAEYATQBBAFoAUQBCADAAQQBDADAAQQBWAGcAQgBoAEEASABJAEEAYQBRAEIAaABBAEcASQBBAGIAQQBCAGwAQQBDAEEAQQBMAFEAQgBPAEEARwBFAEEAYgBRAEIAbABBAEMAQQBBAGEAZwBCAHoAQQBHADgAQQBiAGcAQgBmAEEASABJAEEAWQBRAEIAMwBBAEMAQQBBAEwAUQBCAFcAQQBHAEUAQQBiAEEAQgAxAEEARwBVAEEASQBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEUAQQBYAFEAQQBLAEEAQwBRAEEAWgBRAEIANABBAEcAVQBBAFkAdwBCAGYAQQBIAGMAQQBjAGcAQgBoAEEASABBAEEAYwBBAEIAbABBAEgASQBBAEkAQQBBADkAQQBDAEEAQQBXAHcAQgBUAEEARwBNAEEAYwBnAEIAcABBAEgAQQBBAGQAQQBCAEMAQQBHAHcAQQBiAHcAQgBqAEEARwBzAEEAWABRAEEANgBBAEQAbwBBAFEAdwBCAHkAQQBHAFUAQQBZAFEAQgAwAEEARwBVAEEASwBBAEEAawBBAEgATQBBAGMAQQBCAHMAQQBHAGsAQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA=' null: <127.0.0.1> (0, '{"changed":false,"msg":"The specified timezone: Eastern Standard Time_dstoff isn\\u0027t supported on the machine.","timezone":"Eastern Standard Time_dstoff","previous_timezone":"Eastern Standard Time","failed":true}\r\n', 'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 610\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\n#< CLIXML\r\n<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>debug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') null: fatal: [default]: FAILED! => { null: "changed": false, null: "msg": "The specified timezone: Eastern Standard Time_dstoff isn't supported on the machine.", null: "timezone": "Eastern Standard Time_dstoff" null: } ``` ##### ADDITIONAL INFO I confirmed both locally and through SSH that I can use tzuil /s "Eastern Standard Time_dstoff" and the change is accepted. Only through ansible does it not accept the timezone change. There is also no issue changing timezone for non-dstoff timezones: ``` null: null: TASK [bootstrap : Set TimeZone] ************************************************ null: Monday 10 February 2020 09:01:46 -0500 (0:00:08.965) 0:00:09.037 ******* null: Monday 10 February 2020 09:01:46 -0500 (0:00:08.965) 0:00:09.037 ******* null: changed: [default] => {"changed": true, "previous_timezone": "Central Standard Time", "timezone": "Eastern Standard Time"} null: ``` Working around the issue for now with: ``` - name: Set TimeZone win_command: 'tzutil /s "Eastern Standard Time_dstoff"' ```
https://github.com/ansible/ansible/issues/67273
https://github.com/ansible/ansible/pull/67892
64a28641586e384f1c35d5f573735f3e5045db20
2e38f80f9e5d6b46c5648e19bcb18b69dbc64762
2020-02-10T14:02:20Z
python
2020-03-01T22:02:38Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,269
["changelogs/fragments/play_bools_strict.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/playbook/base.py", "test/integration/targets/incidental_xml/tasks/test-children-elements-xml.yml", "test/integration/targets/playbook/aliases", "test/integration/targets/playbook/runme.sh", "test/integration/targets/playbook/types.yml"]
no_log does not work with conditions
##### SUMMARY It seems that no_log works only with bare boolean values and attempts to use jinja conditions will silently evaluate it as false, producing undesired results. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> lib/ansible/plugins/callback ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below 2.10 (devel) ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml #!/usr/bin/env ansible-playbook -vv - hosts: localhost tasks: - shell: seq 10 register: result no_log: result is success ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS `no_log` should respect the condition mentioned there. If the evaluation happens before the task is executed it should give an error complaining that the result is not defined. Either way putting a condition that is silently ignored produce confusion to the users, with undesired outcomes. I think it is a common desired to have commands that are silent when succesful and verbose when failing, so you can debug them. Current implementation of no_log makes this impossible. ##### ACTUAL RESULTS <!--- Paste verbatim command output between quotes --> ```paste below TASK [shell] ************************************************************************************************************************************************************************ task path: /Users/ssbarnea/c/opendev/me/demo-no_log.yml:5 Monday 10 February 2020 12:34:28 +0000 (0:00:00.626) 0:00:00.737 ******* changed: [localhost] => { "changed": true, "cmd": "seq 10", "delta": "0:00:00.009089", "end": "2020-02-10 12:34:29.124658", "rc": 0, "start": "2020-02-10 12:34:29.115569" } STDOUT: 1 2 3 4 5 6 7 8 9 10 META: ran handlers META: ran handlers ```
https://github.com/ansible/ansible/issues/67269
https://github.com/ansible/ansible/pull/67625
7714f691eb93c8e360912a70e8b63cf3d16674c9
babac66f9cd978b765f58a21c20f3577308f5504
2020-02-10T12:41:07Z
python
2020-04-28T17:55:26Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,267
["lib/ansible/modules/system/open_iscsi.py"]
open_iscsi: string field conversion warning for the default port argument
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> The default `port` value of the `open_iscsi` module throws a type int to string conversion warning. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> - open_iscsi ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.9.3 config file = /Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg configured module search path = [u'/Users/pascal/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/.venv/lib/python2.7/site-packages/ansible executable location = /Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/.venv/bin/ansible python version = 2.7.16 (default, Nov 9 2019, 05:55:08) [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-s ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ANSIBLE_PIPELINING(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = True ANSIBLE_SSH_ARGS(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=60s ANSIBLE_SSH_CONTROL_PATH(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = %(directory)s/ansible-ssh-%%h-%%p-%%r DEFAULT_BECOME(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = True DEFAULT_FORKS(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = 20 DEFAULT_HOST_LIST(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = [u'/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/hosts'] DEFAULT_MANAGED_STR(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = !!! WARNING: This file is managed by Ansible, DON'T EDIT it manually !!! DEFAULT_ROLES_PATH(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = [u'/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/roles'] INTERPRETER_PYTHON(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = /usr/bin/python3 RETRY_FILES_ENABLED(/Users/pascal/Documents/02_business/01_confirm/confirm-git/infrastructure/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ``` ╰─ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster ``` ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: perform a discovery and show available target nodes open_iscsi: show_nodes: yes discover: yes portal: '{{ iscsi_server }}' tags: - iscsi - config ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ```paste below TASK [iscsi : perform a discovery and show available target nodes] ********************************************************************************************************************************************************************************************************************************************************* ``` ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ```paste below TASK [iscsi : perform a discovery and show available target nodes] ********************************************************************************************************************************************************************************************************************************************************* [WARNING]: The value 3260 (type int) in a string field was converted to '3260' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ```
https://github.com/ansible/ansible/issues/67267
https://github.com/ansible/ansible/pull/67270
59bcc9f739d40c35ec1f471dbd7f30934bccfd94
24ce97a49b0a98bec777f77d34241bb51c12e648
2020-02-10T12:21:32Z
python
2020-02-15T13:06:16Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,213
["changelogs/fragments/67515-openssl-fingerprint-fips.yml", "lib/ansible/module_utils/crypto.py"]
openssl_privatekey breaks in FIPS mode
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> When attempting to create an openssl key on a system in FIPS mode, the module crashes with error: > ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips Module attempts to fingerprint key using all listed algorithms, even though some of them are forbidden by FIPS. In particular, md5 does not work. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ``` ansible 2.9.4 config file = /home/chris.kiick/services-performance-lab-master/ansible.cfg configured module search path = [u'/home/chris.kiick/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.16 (default, Dec 12 2019, 23:58:22) [GCC 7.3.1 20180712 (Red Hat 7.3.1-6)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below ANSIBLE_SSH_RETRIES(/home/chris.kiick/services-performance-lab-master/ansible.cf DEFAULT_FORKS(/home/chris.kiick/services-performance-lab-master/ansible.cfg) = 1 DEFAULT_GATHERING(/home/chris.kiick/services-performance-lab-master/ansible.cfg) DEFAULT_HOST_LIST(/home/chris.kiick/services-performance-lab-master/ansible.cfg) DISPLAY_SKIPPED_HOSTS(/home/chris.kiick/services-performance-lab-master/ansible. HOST_KEY_CHECKING(/home/chris.kiick/services-performance-lab-master/ansible.cfg) RETRY_FILES_ENABLED(/home/chris.kiick/services-performance-lab-master/ansible.cf) ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> Target system was RHEL 7 with FIPS mode enabled. Playbook: <!--- Paste example playbooks or commands between quotes below --> ```yaml -- - hosts: host-with-FIPS-enabled name: create SSL cert key tasks: - openssl_privatekey: backup: true path: "/tmp/foo" state: present become: true ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> changed: true failed: false File /tmp/foo exists and contains a private key in PEM format. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> Module crashes with FIPS specific error. <!--- Paste verbatim command output between quotes --> ```paste below > ansible-playbook -vvv bug.yml ansible-playbook 2.9.4 config file = /home/chris.kiick/services-performance-lab-master/ansible.cfg configured module search path = [u'/home/chris.kiick/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.16 (default, Dec 12 2019, 23:58:22) [GCC 7.3.1 20180712 (Red Hat 7.3.1-6)] Using /home/chris.kiick/services-performance-lab-master/ansible.cfg as config file host_list declined parsing /home/chris.kiick/services-performance-lab-master/inventory/dynamic.py as it did not pass its verify_file() method Parsed /home/chris.kiick/services-performance-lab-master/inventory/dynamic.py inventory source with script plugin PLAYBOOK: bug.yml ************************************************************** 1 plays in bug.yml PLAY [create SSL cert key] ***************************************************** <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"'' <100.64.12.7> (0, '/home/ec2-user\n', "Warning: Permanently added '100.64.12.7' (ECDSA) to the list of known hosts.\r\nAuthorized uses only. All activity may be monitored and reported.\n") <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070 `" && echo ansible-tmp-1581102287.88-194846480658070="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070 `" ) && sleep 0'"'"'' <100.64.12.7> (0, 'ansible-tmp-1581102287.88-194846480658070=/home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070\n', '') <prod-task1> Attempting python interpreter discovery <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"'' <100.64.12.7> (0, 'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python3.6\n/usr/bin/python2.7\n/usr/libexec/platform-python\n/usr/bin/python3\n/usr/bin/python\nENDFOUND\n', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"'' <100.64.12.7> (0, '{"osrelease_content": "NAME=\\"Red Hat Enterprise Linux Server\\"\\nVERSION=\\"7.7 (Maipo)\\"\\nID=\\"rhel\\"\\nID_LIKE=\\"fedora\\"\\nVARIANT=\\"Server\\"\\nVARIANT_ID=\\"server\\"\\nVERSION_ID=\\"7.7\\"\\nPRETTY_NAME=\\"Red Hat Enterprise Linux Server 7.7 (Maipo)\\"\\nANSI_COLOR=\\"0;31\\"\\nCPE_NAME=\\"cpe:/o:redhat:enterprise_linux:7.7:GA:server\\"\\nHOME_URL=\\"https://www.redhat.com/\\"\\nBUG_REPORT_URL=\\"https://bugzilla.redhat.com/\\"\\n\\nREDHAT_BUGZILLA_PRODUCT=\\"Red Hat Enterprise Linux 7\\"\\nREDHAT_BUGZILLA_PRODUCT_VERSION=7.7\\nREDHAT_SUPPORT_PRODUCT=\\"Red Hat Enterprise Linux\\"\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\"7.7\\"\\n", "platform_dist_result": ["redhat", "7.7", "Maipo"]}\n', '') Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py <100.64.12.7> PUT /home/chris.kiick/.ansible/tmp/ansible-local-16723ohhUk2/tmpzbPAGm TO /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/AnsiballZ_setup.py <100.64.12.7> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f '[100.64.12.7]' <100.64.12.7> (0, 'sftp> put /home/chris.kiick/.ansible/tmp/ansible-local-16723ohhUk2/tmpzbPAGm /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/AnsiballZ_setup.py\n', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/ /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/AnsiballZ_setup.py && sleep 0'"'"'' <100.64.12.7> (0, '', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f -tt 100.64.12.7 '/bin/sh -c '"'"'/usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/AnsiballZ_setup.py && sleep 0'"'"'' <100.64.12.7> (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_fibre_channel_wwn": [], "module_setup": true, "ansible_distribution_version": "7.7", "ansible_distribution_file_variety": "RedHat", "ansible_env": {"LANG": "en_US.UTF-8", "TERM": "xterm-256color", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1000", "SHLVL": "2", "SSH_TTY": "/dev/pts/0", "_": "/usr/bin/python", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "PWD": "/home/ec2-user", "SELINUX_LEVEL_REQUESTED": "", "PATH": "/usr/local/bin:/usr/bin", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "LOGNAME": "ec2-user", "USER": "ec2-user", "HOME": "/home/ec2-user", "MAIL": "/var/mail/ec2-user", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "XDG_SESSION_ID": "486", "SSH_CLIENT": "100.64.4.47 39200 22", "SSH_CONNECTION": "100.64.4.47 39200 100.64.12.7 22"}, "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_default_ipv4": {"macaddress": "06:9c:05:33:da:3a", "network": "100.64.12.0", "mtu": 9001, "broadcast": "100.64.12.15", "alias": "eth0", "netmask": "255.255.255.240", "address": "100.64.12.7", "interface": "eth0", "type": "ether", "gateway": "100.64.12.1"}, "ansible_swapfree_mb": 0, "ansible_default_ipv6": {}, "ansible_cmdline": {"LANG": "en_US.UTF-8", "BOOT_IMAGE": "/boot/vmlinuz-3.10.0-1062.9.1.el7.x86_64", "rd.blacklist": "nouveau", "net.ifnames": "0", "fips": "1", "crashkernel": "auto", "console": "tty0", "ro": true, "root": "UUID=1698b607-b2a7-455f-b2ee-ed7f6e17ed9f"}, "ansible_selinux": {"status": "enabled", "policyvers": 31, "type": "targeted", "mode": "enforcing", "config_mode": "enforcing"}, "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_pkg_mgr": "yum", "ansible_distribution": "RedHat", "ansible_iscsi_iqn": "", "ansible_all_ipv6_addresses": ["fe80::447:87ff:fe7a:b5e", "fe80::49c:5ff:fe33:da3a"], "ansible_uptime_seconds": 691103, "ansible_kernel": "3.10.0-1062.9.1.el7.x86_64", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 5, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 5, "final", 0]}, "ansible_is_chroot": true, "ansible_hostnqn": "", "ansible_user_shell": "/bin/bash", "ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_distribution_file_parsed": true, "ansible_fips": true, "ansible_user_id": "ec2-user", "ansible_selinux_python_present": true, "ansible_kernel_version": "#1 SMP Mon Dec 2 08:31:54 EST 2019", "ansible_local": {}, "ansible_processor_vcpus": 2, "ansible_processor": ["0", "AuthenticAMD", "AMD EPYC 7571", "1", "AuthenticAMD", "AMD EPYC 7571"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBbDFjCVSkQFuLO6i5YjJ6zoHvgcPeJb1MhEZHtiL3st1ylLxKUWzWY6TmAWtDA26RnM4iPdpcZtRy+x/Ff20eo=", "ansible_user_gid": 1000, "ansible_system_vendor": "Amazon EC2", "ansible_swaptotal_mb": 0, "ansible_distribution_major_version": "7", "ansible_real_group_id": 1000, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFkd7ihqpFXEkX0prdeX/9AXeNHxeMwJvC9dp4ZpVqZC9qYV6spo7xPxNgSaHu0JN+NsI30UE4HL3gBTJyMKVDLwpvVQ9VfGU0zzeBAV8rOGhom9qjpP1OIy2n5FMy9J5tNyQ9WLfYXQH+jS5/JtrSdax8c1E7IFJRrZmJXV2hsIFbBKqgWN4a8xdSADGgg3C24upJbtb+VFa8RWoLsbglPYUTS7P+Zwf5cmozEFQK+zy2idD51D0Rsyk+QTujlGpsOqmE1h/tETi/ezq4JccVE+5010BIQ3uqh2vGT3ABDcWabKav9yT9LDotWzvVWmvlSil1HC1NfyRbYFnq0sLp", "ansible_user_gecos": "Cloud User", "ansible_processor_threads_per_core": 2, "ansible_eth0": {"macaddress": "06:9c:05:33:da:3a", "features": {"tx_checksum_ipv4": "on", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "off [fixed]", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "off", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "on", "tx_gre_segmentation": "off [fixed]"}, "pciid": "0000:00:05.0", "module": "ena", "mtu": 9001, "device": "eth0", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "100.64.12.15", "netmask": "255.255.255.240", "network": "100.64.12.0", "address": "100.64.12.7"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::49c:5ff:fe33:da3a"}], "active": true, "type": "ether", "hw_timestamp_filters": []}, "ansible_eth1": {"macaddress": "06:47:87:7a:0b:5e", "features": {"tx_checksum_ipv4": "on", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "off [fixed]", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "off", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "on", "tx_gre_segmentation": "off [fixed]"}, "pciid": "0000:00:06.0", "module": "ena", "mtu": 9001, "device": "eth1", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "10.0.0.31", "netmask": "255.255.255.224", "network": "10.0.0.0", "address": "10.0.0.30"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::447:87ff:fe7a:b5e"}], "active": true, "type": "ether", "hw_timestamp_filters": []}, "ansible_product_name": "m5a.large", "ansible_all_ipv4_addresses": ["10.0.0.30", "100.64.12.7"], "ansible_python_version": "2.7.5", "ansible_product_version": "NA", "ansible_service_mgr": "systemd", "ansible_memory_mb": {"real": {"total": 7569, "used": 6081, "free": 1488}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 4044, "free": 3525}}, "ansible_user_dir": "/home/ec2-user", "gather_subset": ["all"], "ansible_real_user_id": 1000, "ansible_virtualization_role": "guest", "ansible_dns": {"nameservers": ["100.64.0.5", "100.64.0.45"], "search": ["fed.sailpoint.loc"]}, "ansible_effective_group_id": 1000, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 7569, "ansible_device_links": {"masters": {}, "labels": {}, "ids": {"nvme0n1p1": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1-part1", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part1"], "nvme0n1p2": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1-part2", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part2"], "nvme0n1": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001"]}, "uuids": {"nvme0n1p2": ["1698b607-b2a7-455f-b2ee-ed7f6e17ed9f"]}}, "ansible_apparmor": {"status": "disabled"}, "ansible_proc_cmdline": {"LANG": "en_US.UTF-8", "BOOT_IMAGE": "/boot/vmlinuz-3.10.0-1062.9.1.el7.x86_64", "rd.blacklist": "nouveau", "net.ifnames": "0", "fips": "1", "crashkernel": "auto", "console": ["ttyS0,115200n8", "tty0"], "ro": true, "root": "UUID=1698b607-b2a7-455f-b2ee-ed7f6e17ed9f"}, "ansible_memfree_mb": 1488, "ansible_processor_count": 1, "ansible_hostname": "prod-task0", "ansible_interfaces": ["lo", "eth1", "eth0"], "ansible_machine_id": "ec2e9527ba63e63e1f4f148a6b533b0b", "ansible_fqdn": "prod-task0.fed.sailpoint.loc", "ansible_mounts": [{"block_used": 1003765, "uuid": "1698b607-b2a7-455f-b2ee-ed7f6e17ed9f", "size_total": 214735761408, "block_total": 52425723, "mount": "/", "block_available": 51421958, "size_available": 210624339968, "fstype": "xfs", "inode_total": 104856560, "options": "rw,seclabel,relatime,attr2,inode64,noquota", "device": "/dev/nvme0n1p2", "inode_used": 59777, "block_size": 4096, "inode_available": 104796783}], "ansible_nodename": "prod-task0.fed.sailpoint.loc", "ansible_distribution_file_search_string": "Red Hat", "ansible_domain": "fed.sailpoint.loc", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_virtualization_type": "kvm", "ansible_processor_cores": 1, "ansible_bios_version": "1.0", "ansible_date_time": {"weekday_number": "5", "iso8601_basic_short": "20200207T190449", "tz": "UTC", "weeknumber": "05", "hour": "19", "year": "2020", "minute": "04", "tz_offset": "+0000", "month": "02", "epoch": "1581102289", "iso8601_micro": "2020-02-07T19:04:49.229373Z", "weekday": "Friday", "time": "19:04:49", "date": "2020-02-07", "iso8601": "2020-02-07T19:04:49Z", "day": "07", "iso8601_basic": "20200207T190449229284", "second": "49"}, "ansible_distribution_release": "Maipo", "ansible_os_family": "RedHat", "ansible_effective_user_id": 1000, "ansible_system": "Linux", "ansible_devices": {"nvme0n1": {"scheduler_mode": "none", "rotational": "0", "vendor": null, "sectors": "419430400", "links": {"masters": [], "labels": [], "ids": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "Amazon Elastic Block Store", "partitions": {"nvme0n1p1": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1-part1", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part1"], "uuids": []}, "sectors": "2048", "start": "2048", "holders": [], "size": "1.00 MB"}, "nvme0n1p2": {"sectorsize": 512, "uuid": "1698b607-b2a7-455f-b2ee-ed7f6e17ed9f", "links": {"masters": [], "labels": [], "ids": ["nvme-Amazon_Elastic_Block_Store_vol0c7628dcf19c306f1-part2", "nvme-nvme.1d0f-766f6c3063373632386463663139633330366631-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part2"], "uuids": ["1698b607-b2a7-455f-b2ee-ed7f6e17ed9f"]}, "sectors": "419426270", "start": "4096", "holders": [], "size": "200.00 GB"}}, "holders": [], "size": "200.00 GB"}}, "ansible_user_uid": 1000, "ansible_bios_date": "10/16/2017", "ansible_system_capabilities": [""]}}\r\n', 'Shared connection to 100.64.12.7 closed.\r\n') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1581102287.88-194846480658070/ > /dev/null 2>&1 && sleep 0'"'"'' <100.64.12.7> (0, '', '') TASK [Gathering Facts] ********************************************************* task path: /home/chris.kiick/services-performance-lab-master/bug.yml:4 ok: [prod-task1] META: ran handlers <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'echo ~ec2-user && sleep 0'"'"'' <100.64.12.7> (0, '/home/ec2-user\n', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836 `" && echo ansible-tmp-1581102289.37-275304619929836="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836 `" ) && sleep 0'"'"'' <100.64.12.7> (0, 'ansible-tmp-1581102289.37-275304619929836=/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836\n', '') Using module file /usr/lib/python2.7/site-packages/ansible/modules/crypto/openssl_privatekey.py <100.64.12.7> PUT /home/chris.kiick/.ansible/tmp/ansible-local-16723ohhUk2/tmpugGucZ TO /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py <100.64.12.7> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f '[100.64.12.7]' <100.64.12.7> (0, 'sftp> put /home/chris.kiick/.ansible/tmp/ansible-local-16723ohhUk2/tmpugGucZ /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py\n', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/ /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py && sleep 0'"'"'' <100.64.12.7> (0, '', '') <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f -tt 100.64.12.7 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qegpjmyptpfgtqkxxglsjhfnewsepfpj ; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py'"'"'"'"'"'"'"'"' && sleep 0'"'"'' Escalation succeeded <100.64.12.7> (1, 'Traceback (most recent call last):\r\n File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 102, in <module>\r\n _ansiballz_main()\r\n File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 40, in invoke_module\r\n runpy.run_module(mod_name=\'ansible.modules.crypto.openssl_privatekey\', init_globals=None, run_name=\'__main__\', alter_sys=True)\r\n File "/usr/lib64/python2.7/runpy.py", line 176, in run_module\r\n fname, loader, pkg_name)\r\n File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code\r\n mod_name, mod_fname, mod_loader, pkg_name)\r\n File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\r\n exec code in run_globals\r\n File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 692, in <module>\r\n File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 676, in main\r\n File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 303, in generate\r\n File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 545, in _get_fingerprint\r\n File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/module_utils/crypto.py", line 157, in get_fingerprint_of_bytes\r\nValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips\r\n', 'Shared connection to 100.64.12.7 closed.\r\n') <100.64.12.7> Failed to connect to the host via ssh: Shared connection to 100.64.12.7 closed. <100.64.12.7> ESTABLISH SSH CONNECTION FOR USER: ec2-user <100.64.12.7> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="iiq-key.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ec2-user"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/home/chris.kiick/.ansible/cp/3f67b8c86f 100.64.12.7 '/bin/sh -c '"'"'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/ > /dev/null 2>&1 && sleep 0'"'"'' <100.64.12.7> (0, '', '') TASK [openssl_privatekey] ****************************************************** task path: /home/chris.kiick/services-performance-lab-master/bug.yml:7 The full traceback is: Traceback (most recent call last): File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 102, in <module> _ansiballz_main() File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py", line 40, in invoke_module runpy.run_module(mod_name='ansible.modules.crypto.openssl_privatekey', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 692, in <module> File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 676, in main File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 303, in generate File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py", line 545, in _get_fingerprint File "/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/module_utils/crypto.py", line 157, in get_fingerprint_of_bytes ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips fatal: [prod-task1]: FAILED! => { "changed": false, "module_stderr": "Shared connection to 100.64.12.7 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1581102289.37-275304619929836/AnsiballZ_openssl_privatekey.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.crypto.openssl_privatekey', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\r\n fname, loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\r\n mod_name, mod_fname, mod_loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\r\n exec code in run_globals\r\n File \"/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py\", line 692, in <module>\r\n File \"/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py\", line 676, in main\r\n File \"/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py\", line 303, in generate\r\n File \"/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/modules/crypto/openssl_privatekey.py\", line 545, in _get_fingerprint\r\n File \"/tmp/ansible_openssl_privatekey_payload_bq5DCF/ansible_openssl_privatekey_payload.zip/ansible/module_utils/crypto.py\", line 157, in get_fingerprint_of_bytes\r\nValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } PLAY RECAP ********************************************************************* prod-task1 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ```
https://github.com/ansible/ansible/issues/67213
https://github.com/ansible/ansible/pull/67515
9f41d0e9147590159645469e5a7e5a15a9999945
ca57871954fd3a0d79321d1c9b4abf1c51249b8d
2020-02-07T19:08:47Z
python
2020-02-18T08:43:22Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,172
["shippable.yml", "test/lib/ansible_test/_data/completion/remote.txt"]
Add CI platform: freebsd/12.1
##### SUMMARY Replace the `freebsd/12.0` platform in the test matrix with `freebsd/12.1`. FreeBSD 12.1 was released in November, 2019. ##### ISSUE TYPE Feature Idea ##### COMPONENT NAME shippable.yml
https://github.com/ansible/ansible/issues/67172
https://github.com/ansible/ansible/pull/67659
e0eee3c37e8e802113d5c3c41681b1cf4af7b0e9
7a42354021272dccf9037352c7ce645a9f082c4f
2020-02-06T17:31:07Z
python
2020-02-28T22:12:55Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,169
["lib/ansible/module_utils/network/nxos/config/lag_interfaces/lag_interfaces.py", "test/integration/targets/nxos_lag_interfaces/tests/cli/merged.yaml"]
module nxos_lag_interfaces not idempotent when mode yes
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY When using nxos_lag_interfaces with mode: yes, to configure "channel-group x mode on" (needed on Nexuses for connection of FEXes) it is not idempotent. The output even states the mode as "True" not "yes" (see below). I am not sure why in the Ansible module there is an option "yes" instead of "on" which is actually used on devices. changed: [SWITCH-A] => (item={'key': 6, 'value': {u'members': [{u'member': u'Ethernet1/12', u'mode': True}, {u'member': u'Ethernet1/13', u'mode': True}]}}) ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME modules/network/nxos/nxos_lag_interfaces ##### ANSIBLE VERSION ansible 2.9.4 config file = /home/martin/git/ansible-evpn/ansible.cfg configured module search path = [u'/home/martin/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] ##### CONFIGURATION DEFAULT_CALLBACK_WHITELIST(/home/martin/git/ansible-evpn/ansible.cfg) = [u'timer', u'mail', u'profile_tasks'] DEFAULT_FORKS(/home/martin/git/ansible-evpn/ansible.cfg) = 10 DEFAULT_GATHERING(/home/martin/git/ansible-evpn/ansible.cfg) = explicit DEFAULT_HOST_LIST(/home/martin/git/ansible-evpn/ansible.cfg) = [u'/home/martin/git/ansible-evpn/inventory.yml'] DEFAULT_STDOUT_CALLBACK(/home/martin/git/ansible-evpn/ansible.cfg) = skippy DEFAULT_VAULT_PASSWORD_FILE(/home/martin/git/ansible-evpn/ansible.cfg) = /home/martin/git/ansible-evpn/group_vars/.va HOST_KEY_CHECKING(/home/martin/git/ansible-evpn/ansible.cfg) = False INTERPRETER_PYTHON(/home/martin/git/ansible-evpn/ansible.cfg) = auto_legacy_silent PERSISTENT_COMMAND_TIMEOUT(/home/martin/git/ansible-evpn/ansible.cfg) = 180 PERSISTENT_CONNECT_TIMEOUT(/home/martin/git/ansible-evpn/ansible.cfg) = 180 ##### OS / ENVIRONMENT Ansible Server : Ubuntu18.04.3 LTS Device: N9K running 9.2(3) ##### STEPS TO REPRODUCE ``` - name: Create Port-Channels nxos_lag_interfaces: config: - name: port-channel7 members: - member: Ethernet1/15 mode: yes ``` ##### EXPECTED RESULTS ok: [SWITCH-A] ##### ACTUAL RESULTS changed: [SWITCH-A]
https://github.com/ansible/ansible/issues/67169
https://github.com/ansible/ansible/pull/67359
f292f21d867e7ab48b9021ee4aa2612f049e170e
3acd8f6f7f61b72a42a017060c3a718bbbeaf854
2020-02-06T16:15:02Z
python
2020-02-24T12:57:11Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,144
["lib/ansible/module_utils/net_tools/nios/api.py"]
The nios_a_record module updates values on existing records when in check mode
##### SUMMARY The `nios_a_record` module updates values on existing records when in `--check` mode. ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME `nios` `nios_a_record` ##### ANSIBLE VERSION ``` $ ansible --version ansible 2.9.4 config file = /var/lib/jenkins/workspace/zure-infoblox-dns_initial_create/ansible.cfg configured module search path = [u'/var/lib/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` ##### CONFIGURATION ``` $ ansible-config dump --only-changed DEFAULT_STDOUT_CALLBACK(/var/lib/jenkins/workspace/zure-infoblox-dns_initial_create/ansible.cfg) = yaml ``` ##### OS / ENVIRONMENT Red Hat Enterprise Linux 7.7 Infoblox 8.3.4-381259 ``` $ pip show infoblox-client DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Name: infoblox-client Version: 0.4.23 Summary: Client for interacting with Infoblox NIOS over WAPI Home-page: https://github.com/infobloxopen/infoblox-client Author: John Belamaric Author-email: [email protected] License: Apache Location: /usr/lib/python2.7/site-packages Requires: urllib3, setuptools, oslo.log, requests, oslo.serialization Required-by: ``` ##### STEPS TO REPRODUCE There is a host record named test.example.com already present in Infoblox, with no comment. Ansible-playbook is run in `--check` mode to validate what would be changed. ``` ansible-playbook --check main.yml ``` ```yaml --- - hosts: localhost gather_facts: false connection: local tasks: - name: Manage A Record nios_a_record: comment: "Test" ipv4addr: "10.10.1.1" name: "test.example.com" provider: "{{ nios_provider }}" ``` ##### EXPECTED RESULTS Task shows 'changed' but no data is changed. ##### ACTUAL RESULTS The comment of the existing record is changed to 'Test'. ``` $ ansible-playbook --check main.yml PLAY [localhost] *************************************************************** TASK [Manage A Record] ******************************************************** changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ```
https://github.com/ansible/ansible/issues/67144
https://github.com/ansible/ansible/pull/67145
a4ec18d8a3cd6284b35d3d26b70256eb31ad9ef2
bc2419c47ceb85fb4d83a9d64e1137fd077a95c7
2020-02-05T23:13:10Z
python
2020-02-12T14:40:10Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,118
["changelogs/fragments/ansible-test-pylint-python-3.8-3.9.yml", "test/integration/targets/ansible-test/ansible_collections/ns/col/plugins/filter/check_pylint.py", "test/integration/targets/ansible-test/ansible_collections/ns/col/tests/sanity/ignore.txt", "test/lib/ansible_test/_data/requirements/constraints.txt", "test/lib/ansible_test/_data/requirements/sanity.pylint.txt", "test/lib/ansible_test/_internal/sanity/pylint.py", "test/sanity/ignore.txt"]
pylint sanity test fails on Python 3.8
##### SUMMARY When running `ansible-test sanity --venv --python 3.8 --test pylint plugins/` inside the `theforeman.foreman` collection (https://github.com/theforeman/foreman-ansible-modules), the test fails with ``` ERROR: plugins/module_utils/foreman_helper.py:13:0: syntax-error: Cannot import 'contextlib' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 380)' ERROR: plugins/module_utils/foreman_helper.py:15:0: syntax-error: Cannot import 'collections' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 96)' ERROR: plugins/module_utils/foreman_helper.py:16:0: syntax-error: Cannot import 'functools' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 276)' ``` ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ansible-test ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.10.0.dev0 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/egolov/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/egolov/Devel/theforeman/foreman-ansible-modules/venv3/lib64/python3.7/site-packages/ansible executable location = /home/egolov/Devel/theforeman/foreman-ansible-modules/venv3/bin/ansible python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below <empty> ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> Fedora 31 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml ansible-test sanity --venv --python 3.8 --test pylint plugins/ ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> No errors / or at least valid sanity/pylint errors ;) ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> <!--- Paste verbatim command output between quotes --> ``` ERROR: plugins/module_utils/foreman_helper.py:13:0: syntax-error: Cannot import 'contextlib' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 380)' ERROR: plugins/module_utils/foreman_helper.py:15:0: syntax-error: Cannot import 'collections' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 96)' ERROR: plugins/module_utils/foreman_helper.py:16:0: syntax-error: Cannot import 'functools' due to syntax error 'invalid syntax (&lt;unknown&gt;, line 276)' ``` ##### ADDITIONAL INFO I've traced the issue to `astroid-2.2.5` (a dependency of `pylint`), when using `astroid-2.3.3` everything works.
https://github.com/ansible/ansible/issues/67118
https://github.com/ansible/ansible/pull/72972
7eee2454f617569fd6889f2211f75bc02a35f9f8
37d09f24882c1f03be9900e610d53587cfa6bbd6
2020-02-05T11:13:31Z
python
2020-12-15T18:27:32Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,100
["changelogs/fragments/67221-vmware-guest-disk-storage-drs-fix.yml", "lib/ansible/modules/cloud/vmware/vmware_guest_disk.py"]
vmware_guest and vmware_guest_disk modules fail to return Storage DRS recommendations when using datastore clusters
<!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete *all* sections as described, this form is processed automatically --> ##### SUMMARY <!--- Explain the problem briefly below --> When passing in a `datastore_cluster` name to the `vmware_guest_disk` or `vmware_guest` modules, returning a datastore recommendation is failing and falling back on the default behavior (iterating through available datastores). This breaks Storage DRS behavior such as "Keep VMDKs Together" ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME <!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure --> vmware_guest_disk vmware_guest ##### ANSIBLE VERSION <!--- Paste verbatim output from "ansible --version" between quotes --> ```paste below ansible 2.10.0.dev0 config file = /etc/ansible/ansible.cfg configured module search path = ['/export/home/rr86949e/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /tech/home/rr86949e/debug/ansible/lib/ansible executable location = /tech/home/rr86949e/debug/ansible/bin/ansible python version = 3.6.8 (default, Jun 11 2019, 15:15:01) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] ``` ##### CONFIGURATION <!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes --> ```paste below DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/roles', '/usr/share/ansible/roles'] HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False ``` ##### OS / ENVIRONMENT <!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. --> RedHat Linux Enterprise Server 7.6 vSphere Client version 6.5.0.23000 pyvmomi 6.7.3 ##### STEPS TO REPRODUCE <!--- Describe exactly how to reproduce the problem, using a minimal test-case --> <!--- Paste example playbooks or commands between quotes below --> ```yaml - name: Add disks to virtual machine, extend existing disk or remove disk vmware_guest_disk: hostname: "{{ lookup('env', 'VMWARE_HOST') }}" username: "{{ lookup('env', 'VMWARE_USER') }}" password: "{{ lookup('env', 'VMWARE_PASSWORD') }}" datacenter: "{{ datacenter_name }}" validate_certs: no name: "{{ vm_hostname }}" disk: "{{ disk_params }}" ``` <!--- HINT: You can paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> With Storage DRS enabled and "Keep VMDKs together" checked in vSphere, the recommended datastore for the disk should be the same as the datastore used for the VM's OS disk. If you follow the manual steps through the vSphere UI, you can see the storage recommendation to place any new hard disks on the same datastore in the datastore cluster as the VM's OS disk. ##### ACTUAL RESULTS <!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) --> The new disk is on a separate datastore in the datastore cluster from that of the VM's OS disk. This does not match behavior through the vSphere UI with the same settings enabled. ##### ADDITIONAL Using the steps from https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html I was able to debug this using `pdb` and see the following error messages from executing the line below: https://github.com/ansible/ansible/blob/fe454d27a1aa5386801563ffe8dde44064f84302/lib/ansible/modules/cloud/vmware/vmware_guest_disk.py#L765: ``` -> rec = self.content.storageResourceManager.RecommendDatastores(storageSpec=storage_spec) (Pdb) n pyVmomi.VmomiSupport.vmodl.fault.InvalidArgument: (vmodl.fault.InvalidArgument) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], msg = 'A specified parameter was not correct: configSpec', faultCause = <unset>, faultMessage = (vmodl.LocalizableMessage) [], invalidProperty = 'configSpec' } ``` I was able to fix it by adding the following lines before the `try` block to update the `storage_spec` object: ```python if sdrs_status: # We can get storage recommendation only if SDRS is enabled on given datastorage cluster pod_sel_spec = vim.storageDrs.PodSelectionSpec() pod_sel_spec.storagePod = datastore_cluster_obj storage_spec = vim.storageDrs.StoragePlacementSpec() storage_spec.podSelectionSpec = pod_sel_spec storage_spec.type = 'create' # my changes here storage_spec.configSpec = self.config_spec storage_spec.resourcePool = self.vm.resourcePool # end of my changes try: ``` It is no longer failing and falling back to default behavior here, but I am still seeing a different recommendation returned from what I would get via the UI. At the very least, I would like to fix this initial issue and have the actual return recommendation looked into as well.
https://github.com/ansible/ansible/issues/67100
https://github.com/ansible/ansible/pull/67221
faa9533734a1ee3f0bb563704b277ffcc3a2423f
59289183527940162ae8c59a3746baf664171390
2020-02-04T20:17:14Z
python
2020-02-19T13:42:27Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,088
["changelogs/fragments/67302-zabbix_template_info-add-omit_date-field.yml", "lib/ansible/modules/monitoring/zabbix/zabbix_template.py", "lib/ansible/modules/monitoring/zabbix/zabbix_template_info.py"]
zabbix_template dump - omit date field
##### SUMMARY What you think about adding an module option to omit the date field on a template dump. Currently if you export a template the copy-content to file is always changed=True as the date field of the export is always another. If we omit the field it would report the correct change state. Would add a PR if others like the idea. ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME zabbix_template
https://github.com/ansible/ansible/issues/67088
https://github.com/ansible/ansible/pull/67302
cceb517aff5775cf8acf06453998a1120f66efd6
8aec05847334449ecff64de8888569ad5ce2e239
2020-02-04T14:58:27Z
python
2020-02-19T06:56:40Z
closed
ansible/ansible
https://github.com/ansible/ansible
67,074
["lib/ansible/modules/cloud/ovirt/ovirt_host_network.py"]
Add Custom Properties to ovirt_host_network
##### SUMMARY Add field to ovirt_host_network to configure "Custom Properties" (from oVirt) ##### ISSUE TYPE - Feature Idea ##### COMPONENT NAME ovirt_host_network ##### ADDITIONAL INFORMATION <!--- Describe how the feature would be used, why it is needed and what it would solve --> This feature will be used to configure specific options during host's network setup (e.g. custom proprieties for FCoE) ```yaml - ovirt_host_network: name: myhost interface: eth0-fcoe networks: - name: myvlan1 - name: myvlan2 custom_proprieties: - type: fcoe options: "enable=yes,dcb=no,auto_vlan=yes" ```
https://github.com/ansible/ansible/issues/67074
https://github.com/ansible/ansible/pull/67117
822077fefd9929018bea480e2561015f9c65ffae
52f2081e62a8d12dcd7be31aac84b3ab9d105c90
2020-02-04T07:36:19Z
python
2020-02-05T12:03:32Z