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

Deprecation warning #1098

Closed
4 tasks done
mAAdhaTTah opened this issue Jul 25, 2019 · 0 comments · Fixed by #1101
Closed
4 tasks done

Deprecation warning #1098

mAAdhaTTah opened this issue Jul 25, 2019 · 0 comments · Fixed by #1101

Comments

@mAAdhaTTah
Copy link
Contributor

Description

Getting this deprecation warning when running provision:

TASK [swapfile : install dependencies] ************************************************************************************************
[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: '{{ swapfile_dependencies }}' 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.
ok: [159.203.148.200] => (item=['util-linux'])

Steps to reproduce

  1. Run ansible-playbook provision.

Expected behavior: [What you expect to happen]

No deprecation warnings.

Actual behavior: [What actually happens]

Shows a deprecation warning.

Reproduces how often: [What percentage of the time does it reproduce?]

Every time.

Versions

Ansible 2.7.10 (just outside the supported range, but everything else still works)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant