{"repo":"maschmann/php-ansible","free":true,"listed":false,"github":"https://github.com/maschmann/php-ansible","clone":"git clone https://github.com/maschmann/php-ansible.git","description":"php oop wrapper for ansible provisioning tool","language":"PHP","stars":215,"topics":["php","ansible"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"php-ansible library This library is a OOP-wrapper for the ansible provisioning tool. I intend to use this library for a symfony2 bundle and also a deployment GUI, based on php/symfony2. The current implementation is feature-complete for the ansible-playbook and ansible-galaxy commands. Prerequisites Your OS should be a flavor of linux and ansible has to be installed. It's easiest if ansible is in PATH :-) The library tries to find ansible-playbook and ansible-galaxy by itself or use the paths/executables you provide. Usage First instantiate the base object which works as a factory for the commands. Only the first parameter is mandatory, and provides the library with the path to your ansible deployment file structure. Optionally, you can specify the path of your ansible-playbook and ansible-galaxy commands, just in case they are not in the PATH. You can also pass any PSR compliant logging class to have further details logged. This is especially useful to have the actual run command logged . Playbooks Then you can use the object just like in your previous ansible deployment. If you don't specify an inventory file with , the wrapper tries to determine one, based on your playbook name: This will create following ansible command: For the execute command you can use a callback to get real-time output of the command: If no callback is given, the method will return the ansible-playbook output as a string, so you can either or directly pipe it into a log/whatever. You can also pass an","default_branch":null,"files":null,"tree":[],"storefront":"/r/maschmann","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maschmann/php-ansible/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}