We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In ansible 2.2 on kubuntu 16.04 I get an error for apt_default_key_urls and apt_default_repositories when the lists are empty (default):
apt_default_key_urls
apt_default_repositories
failed: [35.162.23.231] (item=apt_default_repositories) => { "failed": true, "invocation": { "module_args": { "filename": null, "install_python_apt": true, "mode": null, "repo": "apt_default_repositories", "state": "present", "update_cache": true, "validate_certs": true }, "module_name": "apt_repository" }, "item": "apt_default_repositories", "msg": "Invalid repository string: apt_default_repositories" }
Problem is fixed by adding when: apt_default_key_urls to avoid empty lists, eg:
when: apt_default_key_urls
- name: APT | Make sure the default keys are added apt_key: url: "{{item}}" state: present with_items: apt_default_key_urls when: apt_default_key_urls
The text was updated successfully, but these errors were encountered:
Please check https://github.com/AutomationWithAnsible/ansible-apt as this one is not maintained anymore
Sorry, something went wrong.
No branches or pull requests
In ansible 2.2 on kubuntu 16.04 I get an error for
apt_default_key_urls
andapt_default_repositories
when the lists are empty (default):Problem is fixed by adding
when: apt_default_key_urls
to avoid empty lists, eg:The text was updated successfully, but these errors were encountered: