# Integrate rundeck with Ansible playbook ## Howto #### Create a new Job: - Create new Job(Create a Job for 2 nodes) - ![](https://i.imgur.com/FQK55TF.png) - Config(name and description): - ![](https://i.imgur.com/JL3OwCO.png) - Config(setp: Ansible Workflow Node Step) - ![](https://i.imgur.com/1qsO6Qq.png) - ![](https://i.imgur.com/LIJh48I.png) - ![](https://i.imgur.com/2jI3ThL.png) - Create - ![](https://i.imgur.com/9bvm9AJ.png) #### Ansible host config: - All the host tag should mapping in rundeck node name (devorg, node0.puyuma.org) - File: hosts ``` [fullnode] node.deviceproof.org ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa [devorg] node.deviceproof.org ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa [node0.puyuma.org] node0.puyuma.org ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa ``` - Screenshot og rundeck - ![](https://i.imgur.com/81QwCog.png) #### Run the Job! ![](https://i.imgur.com/4vmcpar.png) ## Reference - [GitHub:Batix/rundeck-ansible-plugin](https://github.com/Batix/rundeck-ansible-plugin)