rundeck-ansible-plugin | Ansible Integration for Rundeck | DevOps library
kandi X-RAY | rundeck-ansible-plugin Summary
kandi X-RAY | rundeck-ansible-plugin Summary
This plugin brings basic Ansible support to Rundeck. It imports hosts from Ansible's inventory, including a bunch of facts, and can run modules and playbooks. There is also a node executor and file copier for your project. No SSH-Keys need to be shared between Ansible and Rundeck (but can be), everything is run through either ansible or ansible-playbook (even the node import).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns a set of nodes
- Tokenizes the given command - line arguments
- Builds ansible runner
- Registers a key ssh - agent
- Escapes any special backslash characters in the given string
- Deletes a temporary directory
- Splits a command line into a list of arguments
- Runs the ansible command
- Resolve a long attribute
- Returns true if any errors should be ignored
- Get prefix for ignore tags
- Returns whether or not the project should gather information
- Sets the outputs
- Resolve an integer attribute
- Executes the node step
- Execute a node step
- Executes the given node
- Parses the given input stream and returns the ansible logs
rundeck-ansible-plugin Key Features
rundeck-ansible-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on rundeck-ansible-plugin
QUESTION
I am not able to configure the rundeck integration with ansible, I am using the rundeck-ansible plugin, but I am not getting easy and useful information/help from google. I have installed ansible and rundeck on the same server. I have used that plugin https://github.com/Batix/rundeck-ansible-plugin but not able to configure it. can anyone please share the link which h guide step by step. Any help will be appreciated.
...ANSWER
Answered 2020-Feb-03 at 21:13Keep on mind that the Ansible plugin is out of the box with Rundeck, basically, you need to follow this:
Create a new project, go to the "Default Node Executor" tab and select "Ansible Ad-hoc Node Executor". Take a look.
In the Ansible Node Executor configuration, set the Executable (usually
/bin/bash
) and define the Ansible config path (usually at/etc/ansible/ansible.cfg
), also click ON "Generate Inventory" checkbox. Now scroll down and click on "Save" button.- You need to get the ansible nodes defined in your Ansible inventory.
For that click on "Project Settings", click on "Edit Nodes..." and
then on "Add new Node Source +" green button. Take a look.
Choose "Ansible Resource Model Source" and define your
Ansible inventory file path (usually at
/etc/ansible/hosts
) and Ansible config path (usually at/etc/ansible/ansible.cfg
). With this, just scroll down and click on the "Save" green button. Now if you click on the "Nodes" option in the left panel, you can see the nodes defined in your Ansible inventory. - Is time for a little test, go to Commands option in the left panel, in the Nodes section then select some Ansible node defined in your Ansible inventory and run some command, in the example, I used "ls -a", take a look.
- Now you can run any command/playbooks/inline-playbooks over your ansible nodes and/or use Rundeck nodes to run Ansible playbooks/inline-playbooks, with this you can design any workflow that involves ansible nodes and/or playbooks.
You can watch this to learn more about run Ansible playbooks (and use inline Ansible playbooks) in Rundeck.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rundeck-ansible-plugin
Copy the .jar file to your Rundeck plugins directory (/var/lib/rundeck/libext if you installed the .deb, for example)
Create a new project (this assumes you want every node in your project to be controlled via Ansible)
Choose "Ansible Resource Model Source" as the resource model source
Choose "Ansible Ad-Hoc Node Executor" as the default node executor
Choose "Ansible File Copier" as the default node file copier
Save, it can take a short time to import all the nodes, depending on your fleet
You're all set! Try running a command
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page