ansible-cli-js
A node.js wrapper for the ansible command
Installation
Step 1: Prerequisites
Ansible must be installed and accessible in the path
Step 2: Installation
npm install ansible-cli-js
Then:
var ansibleCli = ;
Usage
With promise:
var Options = ansibleCliOptions;var Ansible = ansibleCliAnsible; var options = /* currentWorkingDirectory */ 'ping'; var ansible = options; ansible; //data = {// command: 'ansible all -m ping --inventory-file=./inventory --connection=local ',// raw: '["localhost | success >> {\\n \\"changed\\": false, \\n \\"ping\\": \\"pong\\"\\n}\\n\\n",""]'//}
With callback:
ansible;
Typescript:
; const options = /* currentWorkingDirectory */ 'ping'; const ansible = options; ansible;
License
MIT