rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
331 stars 100 forks source link

Ansible forks versus Rundeck threads #174

Open jimr6007 opened 6 years ago

jimr6007 commented 6 years ago

so, is the concept of Ansible forks a thing here? I think I just don't understand the relationship between the Ansible inventory the plugin pulls in to Rundeck and how Rundeck then executes jobs against those jobs. Can you enlighten me please :) Say I have an inventory of 1000 hosts and I want to execute a Playbook against all 1000 hosts. And in my ansible.cfg I have forks set to 100. Will the single Rundeck job execute that job and connect to 100 nodes at a time? Or is the Rundeck thread count something I need to think about as well? http://rundeck.org/docs/administration/tuning-rundeck.html#quartz-job-threadcount and/or http://rundeck.org/docs/manual/jobs.html#threadcount Thanks !

mcassaniti commented 6 years ago

AFAIK Rundeck will be using a single thread because Ansible tasks are done as a workflow step, not a node step. On the Ansible side the list of nodes is fed in via the --limit parameter. If you selected 1000 nodes in Rundeck to run a particular job, the Ansible task would get a list of 1000 hosts to execute against.

mcassaniti commented 6 years ago

Has this answered your question? Can the issue be closed?