[talk] New Ideas Ansible Unify or Not: was Re: classifying BSD init

Sujit K M kmsujit at gmail.com
Sun Sep 6 07:00:26 EDT 2015


On Sun, Sep 6, 2015 at 4:10 PM, Patrik Lundin <patrik at sigterm.se> wrote:
> On Sun, Sep 06, 2015 at 03:46:30PM +0530, Sujit K M wrote:
>> On Sun, Sep 6, 2015 at 3:08 PM, Patrik Lundin <patrik at sigterm.se> wrote:
>> > On Sun, Sep 06, 2015 at 07:44:32AM +0530, Sujit K M wrote:
>> >> On Sat, Sep 5, 2015 at 6:47 PM, Patrik Lundin <patrik at sigterm.se> wrote:
>> >>
>> >> These are just documentation of the yum/apt or openbsd modules. Below
>> >> what I mean.
>> >>
>> >> https://raymii.org/s/tutorials/Ansible_-_Only_if_on_specific_distribution_or_distribution_version.html
>> >>
>> >
>> > What I am aiming for is writing playbooks where ansible already takes
>> > care of the "when: ansible_distribution ==" magic (which it does, and
>> > populates the "ansible_pkg_mgr" fact for you).
>>
>> So why do you want to do this?
>>
>
> It is less to type, and less logic to keep track of yourself.

This is ridicules, Why cannot you use Cntr - Shift - R

>>
>> Say are writing a playbook for apache HTTPD, which I hope is free from any Linux
>> distributions, this should work cleanly right now. Could you be please
>> be more clearer.
>>
>
> It can be done currently by calling $ansible_pkg_mgr for installing the package,
> and the "service" module directly for starting it.
>
> Being able to document that you should use $ansible_service_mgr instead
> makes the playbook layout more uniform in my view (and leads the way for
> how other modules performing another task using different backend tools
> should be written).

Could you please go less to code and more to your design or scenarios you are
trying to cover.

> I feel that this discussion should be continued in the context of PRs
> against the ansible code base. Hope you are OK with that.

What ever discussions we are having according to me are not even touching 1%
of any purpose. You seem more interested in building your logic or code which
is not required as per me, as you are taking more in code that needs
to be covered.
This certainly cannot go to code in my view. Also You don't seem to be
interested
in Linux Or Other Operating Systems, or How you are achieving this.
This certainly
cannot be only a BSD Thing.

I am OK to Put in PR If you can present a statement of work and we/NYCBUG or Me
approve it. And you can put it in your PR.




More information about the talk mailing list