[ansible-devel] Feature Pull Request: opennebula dynamic inventory script

2018-04-14 Thread marcindulak
Hi, I've created https://github.com/ansible/ansible/pull/38779 Can someone help to find out why the initial sanity checks failed on shippable? Best regards, Marcin -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from th

[ansible-devel] Re: Feature Pull Request: opennebula dynamic inventory script

2018-04-14 Thread marcindulak
I've corrected the errors. The pull is ready for review. Best regards, Marcin On Saturday, April 14, 2018 at 2:09:54 PM UTC+2, marcindulak wrote: > > Hi, > > I've created https://github.com/ansible/ansible/pull/38779 > Can someone help to find out why the initia

[ansible-devel] Re: Need to execute complex unix commands

2018-04-15 Thread marcindulak
- hosts: localhost tasks: - name: fact command set_fact: fact_command: echo "ps -ef|grep data"|sed 's~[^[:alnum:]/]\+~~g'|sed "s/$/$(date +"%d_%m_%Y_%H_%M_%S")/" - name: run command shell: "{{ fact_command }}" ansible-playbook test.yml -v Using /etc/ansible/ansible.cfg a

Re: [ansible-devel] Re: Need to execute complex unix commands

2018-04-16 Thread marcindulak
18 at 4:12:43 AM UTC+2, Akash Agarwal wrote: > > Thanks! > > Is it possible to run a list of commands using this. I was able to read > the commands from a file; paas it to a custom bash module and execute it. > Which is the better way ? > > Thanks, > Akash > > On Mon, 16 Ap

[ansible-devel] Re: how to pass the value of a variable from one playbook to another.

2018-04-19 Thread marcindulak
This is ansible-devel forum, please post usage questions at https://groups.google.com/forum/#!forum/ansible-project Marcin On Thursday, April 19, 2018 at 10:03:59 AM UTC+2, radha gupta wrote: > > Hello Guys, > > > Can you please help me on how can we pass the value of a variables form > one pla

[ansible-devel] Re: Feature Pull Request: opennebula dynamic inventory script

2018-04-24 Thread marcindulak
Hi, can someone review? The needs_triage flag has been removed. https://github.com/ansible/ansible/pull/38779 Marcin On Saturday, April 14, 2018 at 2:45:37 PM UTC+2, marcindulak wrote: > > I've corrected the errors. > The pull is ready for review. > > Best regards, > &

[ansible-devel] Re: Saving output of commands passed through 'with_items' into a single file

2018-08-05 Thread marcindulak
Since you are saving to a file, maybe just save the output directly. - hosts: localhost tasks: - name: Clear the file shell: "echo > info.txt" - name: Capture some information about a host shell: "echo shell: '{{ item }}' >> info.txt 2>&1 && {{ item }} >> info.txt 2>&1"