-
Notifications
You must be signed in to change notification settings - Fork 302
Some cleanups, clearer syntax, refactor variables, drop selinux and epel (let other roles do that) #55
Conversation
Hi @leryan ,
It will take me more time to make a better review and analyze side effect. Best regards, |
Thanks for review :) Let me ask you some questions:
For EPEL, that's a different point of view, mine is that no ansible role should configure package manager instead of another role dedicated to that job. Of course, if you want, I can rollback changes you don't want to see here and make a proper version fitting your needs & preferences. Just tell me by adding comments in the patches, for example. |
Include_varsI talk about this part :
My remarks :
I know this is indicated in the best practice but I don't like break these options. CompatibilityBreaks compatibility with older versions of this role EPEL"For EPEL, that's a different point of view, mine is that no ansible role should configure package manager instead of another role dedicated to that job."
Thanks, |
I will comments the code after your answer to be sure to have all elements in hand |
include_varsFor CompatibilityIs it really a problem? Things are made to be changed :P EPELIt's a Ooops for me, there is no nginx provided in default repositories, at least in CentOS. So here I should rollback some of the code I deleted that manage official vs EPEL repositories. Personally I use this role to configure EPEL: https://github.com/geerlingguy/ansible-role-repo-epel Tell me what behavior you want and I'll implement it. |
include_varsWe will have to always use the "always" tag when we use CompatibilityYes, we could made a version 2.0 if some broke compatibility :) I have other things that break compatibility to change (it's a more powerfull syntax change :) : EPELLet's keep EPEL. We could improve the role to limit ou remove conflicts with role like : https://github.com/geerlingguy/ansible-role-repo-epel (maybe there is no conflicts with the actual solution) |
include_varsNo, the special EPELSo let's keep it :) We will simply explicitly offer the ability to disable EPEL and so let other roles do it for us. Then it will be up to the guy writing his playbook to manage the whole things. Let's do a summary: include_vars: compatibility: no problem if you want to merge later/much later. EPEL: keep it, offer the ability to disable it. If i remember well, the current role make already this with |
Thanks for the "always" tag tips :) Summary is good. |
tags: [packages,nginx] | ||
- name: Install nginx packages | ||
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" | ||
with_items: nginx_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.
add newline ;)
No description provided.