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

install.yml: remove item iteration due to deprecation warning #11

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Surkes
Copy link

@Surkes Surkes commented Jun 18, 2020

Loop over items with "{{ item }}" will get deprecated in Ansible 2.11.
I changed it to a list of items in apt: name:

TASK [sansible.ntp : Install NTP, tzdata] ****************************************************************************
 [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: ['ntp', 'tzdata']` 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.

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 this pull request may close these issues.

1 participant