Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-06 Thread Kai Stian Olstad

On 01.02.2019 16:48, Thomas Güttler wrote:

Am Freitag, 1. Februar 2019 15:20:14 UTC+1 schrieb Josh Smift:


YAML is great; I was confused at first because I thought it was a 
"markup

language" like HTML, but it's just a way to represent data structures.

It's not a programming language, though. If you want to write your 
system

configuration in a programming language (Python, in this case :^), you
might want to check out OpsMop (https://opsmop.io/), the latest thing 
by

the guy who originally wrote Ansible. My impression is that it's still
pretty bleeding-edge, but looks like it has promise.



Thank you for this hint. This sounds interesting:
https://medium.com/@michaeldehaan/16-ways-opsmop-improves-on-ansible-number-17-is-an-off-by-one-error-bf989420edca


It didn't last long, it's already discontinued ref. 
https://github.com/opsmop/opsmop



--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/38abb24ce4fddef977c70021c0ce5f90%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-02 Thread Stuart Longland
On 1/2/19 11:07 pm, Thomas Güttler wrote:
> I know how to create dicts, lists, strings, multiline-strings with
> python. The syntax is easy and simple.
> 
> I am lazy. I just don't know why I should learn a new language.

It's not a language, it's a serialisation format like JSON, it's a
superset of JSON in fact.  Ansible uses its syntax to define a language
on top.

They could have equally used XML or JSON to do this.  They chose YAML.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5af0b0a6-e2be-5a2c-a026-b5010bc0fe17%40longlandclan.id.au.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Thomas Güttler


Am Freitag, 1. Februar 2019 15:20:14 UTC+1 schrieb Josh Smift:
>
> YAML is great; I was confused at first because I thought it was a "markup 
> language" like HTML, but it's just a way to represent data structures.
>
> It's not a programming language, though. If you want to write your system 
> configuration in a programming language (Python, in this case :^), you 
> might want to check out OpsMop (https://opsmop.io/), the latest thing by 
> the guy who originally wrote Ansible. My impression is that it's still 
> pretty bleeding-edge, but looks like it has promise.
>
>
Thank you for this hint. This sounds interesting: 
https://medium.com/@michaeldehaan/16-ways-opsmop-improves-on-ansible-number-17-is-an-off-by-one-error-bf989420edca


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f2acaba5-81b2-4b9c-839e-0e924bf260aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Josh Smift
YAML is great; I was confused at first because I thought it was a "markup 
language" like HTML, but it's just a way to represent data structures.

It's not a programming language, though. If you want to write your system 
configuration in a programming language (Python, in this case :^), you 
might want to check out OpsMop (https://opsmop.io/), the latest thing by 
the guy who originally wrote Ansible. My impression is that it's still 
pretty bleeding-edge, but looks like it has promise.

On Friday, February 1, 2019 at 8:56:54 AM UTC-5, Jonathan Lozada De La 
Matta wrote:
>
> if you know that then its pretty easy to leanr YML. Specially when the 
> ansible documents have a lot of examples.
>
> On Fri, Feb 1, 2019 at 8:07 AM Thomas Güttler  > wrote:
>
>>
>>
>> Am Freitag, 1. Februar 2019 12:33:48 UTC+1 schrieb Sudheer S:
>>>
>>>
>>> On 01/02/19 4:12 PM, Thomas Güttler wrote:
>>>
>>> I am using a different config management tool up to now (not ansible).
>>>
>>> I think about switching to ansible.
>>>
>>> But I don't like YAML.
>>>
>>> Ansible embraces YAML.
>>>
>>> I like Python.
>>>
>>> Is it doable to use Python syntax instead of YAML?
>>>
>>> Technically, yes. But you'll hardly reap the benefits of Ansible without 
>>> YAML.
>>>
>>>
>>> Is it feasible to do this?
>>>
>>> I can't think of a situation where using Ansible without YAML would be 
>>> feasible. 
>>>
>>> Having said that, what makes you dislike YAML so much so that you would 
>>> think of using something like Ansible without YAML?
>>>
>>
>> I know how to create dicts, lists, strings, multiline-strings with 
>> python. The syntax is easy and simple.
>>
>> I am lazy. I just don't know why I should learn a new language.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/f84567c7-ce70-4f10-a06e-77c13b21736d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
>
> Jonathan lozada de la matta
>
> AUTOMATION PRACTICE
>
>
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ac4a0740-e0f8-49a4-b05c-c8021bc31f76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Jonathan Lozada De La Matta
if you know that then its pretty easy to leanr YML. Specially when the
ansible documents have a lot of examples.

On Fri, Feb 1, 2019 at 8:07 AM Thomas Güttler 
wrote:

>
>
> Am Freitag, 1. Februar 2019 12:33:48 UTC+1 schrieb Sudheer S:
>>
>>
>> On 01/02/19 4:12 PM, Thomas Güttler wrote:
>>
>> I am using a different config management tool up to now (not ansible).
>>
>> I think about switching to ansible.
>>
>> But I don't like YAML.
>>
>> Ansible embraces YAML.
>>
>> I like Python.
>>
>> Is it doable to use Python syntax instead of YAML?
>>
>> Technically, yes. But you'll hardly reap the benefits of Ansible without
>> YAML.
>>
>>
>> Is it feasible to do this?
>>
>> I can't think of a situation where using Ansible without YAML would be
>> feasible.
>>
>> Having said that, what makes you dislike YAML so much so that you would
>> think of using something like Ansible without YAML?
>>
>
> I know how to create dicts, lists, strings, multiline-strings with python.
> The syntax is easy and simple.
>
> I am lazy. I just don't know why I should learn a new language.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f84567c7-ce70-4f10-a06e-77c13b21736d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJGZJuUROiMfQ_ADkQVRkk1p6v%3D%2B8jOd%2BE23C19zHzuQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Thomas Güttler


Am Freitag, 1. Februar 2019 12:33:48 UTC+1 schrieb Sudheer S:
>
>
> On 01/02/19 4:12 PM, Thomas Güttler wrote:
>
> I am using a different config management tool up to now (not ansible).
>
> I think about switching to ansible.
>
> But I don't like YAML.
>
> Ansible embraces YAML.
>
> I like Python.
>
> Is it doable to use Python syntax instead of YAML?
>
> Technically, yes. But you'll hardly reap the benefits of Ansible without 
> YAML.
>
>
> Is it feasible to do this?
>
> I can't think of a situation where using Ansible without YAML would be 
> feasible. 
>
> Having said that, what makes you dislike YAML so much so that you would 
> think of using something like Ansible without YAML?
>

I know how to create dicts, lists, strings, multiline-strings with python. 
The syntax is easy and simple.

I am lazy. I just don't know why I should learn a new language.


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f84567c7-ce70-4f10-a06e-77c13b21736d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Sudheer S


On 01/02/19 4:12 PM, Thomas Güttler wrote:

I am using a different config management tool up to now (not ansible).

I think about switching to ansible.

But I don't like YAML.


Ansible embraces YAML.

I like Python.

Is it doable to use Python syntax instead of YAML?
Technically, yes. But you'll hardly reap the benefits of Ansible without 
YAML.


Is it feasible to do this?


I can't think of a situation where using Ansible without YAML would be 
feasible.


Having said that, what makes you dislike YAML so much so that you would 
think of using something like Ansible without YAML?


-

Sudheer




--
You received this message because you are subscribed to the Google 
Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to ansible-project+unsubscr...@googlegroups.com 
.
To post to this group, send email to ansible-project@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/61ba0cc3-49de-4c2d-8b92-93a6583f2929%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/66b0ca12-f6b2-aad0-c868-206276721854%40techchorus.net.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible but with Python instead of YAML

2019-02-01 Thread Thomas Güttler
I am using a different config management tool up to now (not ansible).

I think about switching to ansible.

But I don't like YAML.

I like Python.

Is it doable to use Python syntax instead of YAML?

Is it feasible to do this?


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/61ba0cc3-49de-4c2d-8b92-93a6583f2929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.