Discussion:
[ansible-project] How do I know pipelining is turned on?
Yuri Niyazov
2015-07-15 20:50:35 UTC
Permalink
I am trying to provision a machine on EC2 (I am provisioning it to be a
management node for a larger fleet of machines, this is why it has Vagrant
and Ansible installed on it)

https://github.com/yn/provisioner


If I understand correctly, then the following line:

ansible.raw_arguments = ['-e pipelining=True']

should reduce the number of operations that ansible performs.

AFAICT the number of operations is the same with that line and without, and
the output log between the two provisions looks identical, except for
different temporary filenames and time-date differences.

I double checked, and the machine that I am provisioning doesn't have
"requiretty" in the /etc/sudoers file. You can test it yourself, the AMI is
public.

Any help is appreciated!
--
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+***@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/bbff9aa2-cda6-4ba1-a922-221d26d52041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-15 20:57:46 UTC
Permalink
No idea what ansible.raw_arguments = ['-e pipelining=True'] does, but
setting pipeline to true in the ansible.cfg enables it ONLY for
connection plugins that support it.

This setting is not intended to have ansible execute less operations,
just allows it to use a streaming pipe instead of having to scp/sftp
everything over.
--
Brian Coca
--
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+***@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/CAJ5XC8khhC2dm-o3MQoG7By%2BpvOxqpxCW7PfMPeQ62wV9czMMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yuri Niyazov
2015-07-15 21:18:00 UTC
Permalink
I created a github gist: https://gist.github.com/yn/4efebad9d72835318ab1

In it, you will see the results of executing two ansible-playbook commands:

ansible-playbook --user=ubuntu --connection=ssh --limit='p2'
--inventory-file=/Users/yn/code/mine/provisioner/.vagrant/provisioners/ansible/inventory
-vvvv -e pipelining=False playbook.yml

and

ansible-playbook --user=ubuntu --connection=ssh --limit='p2'
--inventory-file=/Users/yn/code/mine/provisioner/.vagrant/provisioners/ansible/inventory
-vvvv -e pipelining=True playbook.yml

If I understand the documentation correctly, the -e option allows one to
override the configuration variables from ansible.cfg on the command line.

The outputs look identical except for various IDs that are generated
randomly. How does one know if ansible is using the streaming pipe or not?
--
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+***@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/250c1cb7-c625-468c-b6d2-3232c1ad6d5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-15 21:19:17 UTC
Permalink
wrong, -e is 'extra vars', it does not override configurations, it
overrides variable values, pipelining is not a variable value.
--
Brian Coca
--
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+***@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/CAJ5XC8m4GtqiOVWLUkv6yAv3Pet8ZfMY6RjO6SRZz5kJpciZ-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yuri Niyazov
2015-07-15 21:24:16 UTC
Permalink
thanks!
Post by Brian Coca
wrong, -e is 'extra vars', it does not override configurations, it
overrides variable values, pipelining is not a variable value.
--
Brian Coca
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/Jb36ftBqPmg/unsubscribe.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8m4GtqiOVWLUkv6yAv3Pet8ZfMY6RjO6SRZz5kJpciZ-A%40mail.gmail.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+***@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/CACbjG0sVENVEctkk4kLpEW_G0FPS9BnV5_zGc1kBNBQmdZwcoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...