Skip to content
New issue

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

Switch apt from using items to an inline list #206

Open
ansell opened this issue Oct 25, 2018 · 0 comments
Open

Switch apt from using items to an inline list #206

ansell opened this issue Oct 25, 2018 · 0 comments
Labels

Comments

@ansell
Copy link
Contributor

ansell commented Oct 25, 2018

The following new deprecation warning appeared when updating to Ansible-2.7.0, with a target removal release of 2.11. We use this pattern fairly often, but the changes are trivial in terms of complexity:

TASK [java : Install Oracle Java 8 (before possibly patching files)] [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{item}}`, please use `name: ['oracle- java8-installer', 'ca-certificates', 'oracle-java8-set-default']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

@ansell ansell added the bug label Oct 25, 2018
@ansell ansell mentioned this issue Oct 25, 2018
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant