Answer the question
In order to leave comments, you need to log in
Using PHP to call ansible-playbook?
[Noob Detected]
Trying to call the ansible script using an existing CMS written in PHP.
Involved: Symfony 3 and https://github.com/maschmann/php-ansible/
Task:
Through a web form, passing data, call ansible-playbook
Example:
$ansible = new Ansible();
$ansible->playbook()->play('add.yml')->extraVars([$vars])->execute();
Answer the question
In order to leave comments, you need to log in
Everything that I need works through root in the shell.Why root? Are you configuring your machine or performing local actions that require root?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question