Re: [ansible-devel] Developing new module, that includes filetransfer

2020-03-30 Thread Alex Høffner
Thanks a bunch Felix, I'll have a look at it !! /Alex On Monday, March 30, 2020 at 1:51:46 PM UTC+2, Felix Fontein wrote: > > Hi Alex, > > > I am currently developing a module (actually for windows over ssh). > > The module requires a filetransfer from the controller. Of course I > > could just

[ansible-devel] Strategies for handling redundant role dependencies in multiple roles

2020-03-30 Thread Andrew Feller
I'm looking for insights and strategies for dealing with Ansible roles specifying potentially different versions of the same dependencies, which are being downloaded via ansible-galaxy install . There are a couple of problems I

Re: [ansible-devel] Ansible - Unable to reach the host getting Errno 101 Network is unreachable

2020-03-30 Thread Brian Coca
not a development question. Use ansible-project ML or go to #ansible on freenode. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [ansible-devel] Become plugin

2020-03-30 Thread Brian Coca
It needs a specific subdir for each plugin type, otherwise there would be name conflicts across plugins. See https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#local-plugins -- -- Brian Coca -- You received this message because you are subscribed to the Googl

Re: [ansible-devel] Ansible parser - python

2020-03-30 Thread Matt Martz
There isn't really an AST for Ansible. Ultimately, there are ways to achieve this, they just aren't "supported". You could use the Ansible code to do it, but you would need to understand that it could break at any point in time without notification. Or you could write your own tooling from scratc

Re: [ansible-devel] Ansible parser - python

2020-03-30 Thread Nemania Borovits
Thanks for the quick answer Matt. For each ansible task, i want to get the module, parameters, etc. I want to tokenize the task body for ML purposes. Additionally, is there an AST (abstract syntax tree) for Ansible...? On Monday, March 30, 2020 at 5:07:44 PM UTC+2, Matt Martz wrote: > > Ansible

Re: [ansible-devel] Ansible parser - python

2020-03-30 Thread Matt Martz
Ansible does not expose a python API for developers for this purpose. Under the hood, it is pyyaml that parses the files. I don't know what your end goal is, so I cannot really make any useful recommendation, other than to use pyyaml. On Mon, Mar 30, 2020 at 9:09 AM Nemania Borovits wrote: > He

[ansible-devel] Ansible parser - python

2020-03-30 Thread Nemania Borovits
Hello! I need to parse ansible files effectively. Is there any python library which i can use to parse .yml/.yaml files which contain ansible deployments...? Besides pyyaml or ruamel.yaml -- You received this message because you are subscribed to the Google Groups "Ansible Development" group.

Re: [ansible-devel] Developing new module, that includes filetransfer

2020-03-30 Thread 'Felix Fontein' via Ansible Development
Hi Alex, > I am currently developing a module (actually for windows over ssh). > The module requires a filetransfer from the controller. Of course I > could just use win_copy first, but I would like the module to be more > self-contained. > > But I cannot work out how to achieve a filetransfer.

[ansible-devel] Developing new module, that includes filetransfer

2020-03-30 Thread Alex Høffner
Hi I am currently developing a module (actually for windows over ssh). The module requires a filetransfer from the controller. Of course I could just use win_copy first, but I would like the module to be more self-contained. But I cannot work out how to achieve a filetransfer. I have looked at