Is there any Ansible remote client for control machine?

1.1k views Asked by At

Ansible unlike chef and puppet uses agent less run . I would like to know is there any ansible remote client so that we can connect to fleet of ansible control machines to execute ansible playbooks on their respective targets . I am looking for a command line cliient similar to following

ansible-execute hostname_of_control_machine username_of_control_machine password_of_control_machine inventory_file playbook_name

Please suggest if any ?

2

There are 2 answers

3
Filip Dupanović On

There is nothing preventing you from using Ansible to run Ansible on other machines. The Python API might be a good place to start, as you can get programmatic control over the initial Ansible runner.

0
Anuradha Fernando On

You can do this with SSH

ssh username@controlmachine 'ansible-playbook yourPlaybook.yml