4 ms·
Ansible doesn't install a runtime on the target machine, it temporarily copies over the scripts that do the work and removes them after the run is complete. The
by vinaypai 7y ago
Ansible doesn't install a runtime on the target machine, it temporarily copies over the scripts that do the work and removes them after the run is complete. These are a few kilobytes typically.
No configuration system is likely to work with a full root partition, though.
- _frkl 7y agoAgree. Although I personally prefer Ansible to the alternatives, the one thing I don't like is that it does require python to be installed on the target hosts for most modules. That's not a problem usually, but every now and then it is. Also, sometimes additional python package requirements are needed, managing those in an automated manner is usually a hassle.... I've had this idea for a config management system that compiles all provisioning code to posit shell. One of those years I'll finish it... :-)
- mdaniel 7y ago> it does require python to be installed on the target hosts for most modules I recently learned that ansible supports binary modules, in addition to the OOtB support for modules written in any already-configured scripting language (including shell): https://docs.ansible.com/ansible/2.9/dev_guide/developing_program_flow_modules.html#binary-modules https://docs.ansible.com/ansible/2.9/dev_guide/developing_pr... However, while I know you meant "all the provided modules," it seems they are headed toward a less "batteries included" style and more (pypi|maven|npm|rubygems) style of "the community will sort it out" mechanism of distribution: https://docs.ansible.com/ansible/2.9/user_guide/collections_using.html#using-collections https://docs.ansible.com/ansible/2.9/user_guide/collections_... Which I welcome wholeheartedly because landing even the simplest fixes to ansible modules is currently a very laborious and time intensive operation
- 1337shadow 7y agoTried using gather_facts=false and raw module to setup python ? Example : https://yourlabs.io/oss/bigsudo/blob/master/bigsudo/bootstrap.yml https://yourlabs.io/oss/bigsudo/blob/master/bigsudo/bootstra... Bigsudo ansible wrapper always plays that no matter what and as a result ansible never fails because of missing python.
- inshadows 7y ago> Ansible doesn't install a runtime on the target machine > it temporarily copies over the scripts that do the work So yeah, it does copy its "runtime". It cannot work purely by running commands over SSH. It needs to copy "its agent" to target, and worse, it does this every time you run it.