Trying Ansible for app deployment. It’s nice but why so slow? This below involves copying four files and it takes minutes !!! I am running on Solaris 11.
Please supply your ansible version, what OS you are running from, and what connection type we are using.
Also have you tried accelerated mode, ControlPersist or pipelining yet?
I assume these are smallish files and that shouldn’t matter. It will just be doing sftp/scp by default, so … not sure what may be a factor on your end but let’s start with that and explore.
I am using Ansible 1.6.6 on Solaris 10. Target system is Solaris 11 in a VM, that is mostly idle; both in the company LAN.
I am just getting started. I don’t think Solaris takes ControlPersist. I had to make ssh_args = “”
I can’t use unarchive either, it seems, as it uses the wrong tar, I tried changing the PATH throught .bashrc so /usr/gnu/bin comes before /usr/bin, but it does not seem to source it. I’ve got issues…
In the past, I’ve seen ssh connections into Solaris machines take a long time because the Solaris ssh daemon was doing a reverse DNS lookup on the connecting machine and there was no DNS for the machine. 30 seconds later, the DNS lookup timed out, and the connection continued.
If you have root on the target system, a quick way to confirm/deny this is to create an /etc/hosts entry with the IP address and hostname of your Ansible machine. (create the /etc/hosts line on the target machine, not the Ansible machine).