-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update #42
base: master
Are you sure you want to change the base?
Update #42
Conversation
name: "{{ item }}" | ||
state: installed | ||
with_items: "{{ system_packages }}" | ||
name: "{{ system_packages }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system_packages
is a list so it probably should be used in a loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loops are not necessary with module package,apt etc. - you can just pass a list. It was changed in ver 2.5 of ansible (not 100% sure about version but its was changed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it wasn't. package
module just passes info to next module, so in case of debian-based installations it will pass everything to apt
(which accepts a list), but on other platforms it might fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be wrong but looking at it , I think it should be left as a list since squash_actions is going to be removed. Anyway tomorrow I'm going to check if this task generates "deprecated" warnings as in case of apt module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems legit and since this role officially supports only ubuntu xenial and CentOS7 then there is no use in checking edge cases like Arch Linux etc.
No description provided.