{"id":631,"date":"2016-07-26T07:10:36","date_gmt":"2016-07-26T01:40:36","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=631"},"modified":"2026-09-12T13:03:29","modified_gmt":"2026-09-12T07:33:29","slug":"setting-a-job-on-rundeck","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/setting-a-job-on-rundeck\/","title":{"rendered":"How to Create and Configure a Simple Job in Rundeck"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Rundeck is an automation and job orchestration tool that allows administrators to execute commands and scripts on remote servers through a centralized web interface. It can be used to automate routine administrative tasks, execute scripts, schedule jobs, and manage operations across multiple hosts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, we will explain how to configure a remote <code>rundeck<\/code> user and create a simple job using the Rundeck interface. This guide does not cover the installation of Rundeck. It assumes that Rundeck is already installed, configured, and running on port <code>8000<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A working Rundeck installation running on port <code>8000<\/code>.<\/li>\n\n\n\n<li>SSH access from the Rundeck server to the remote host.<\/li>\n\n\n\n<li>Root or sudo privileges on the remote host.<\/li>\n\n\n\n<li>A <code>rundeck<\/code> user configured on the remote host.<\/li>\n\n\n\n<li>An SSH key pair available on the Rundeck server.<\/li>\n\n\n\n<li>The required permissions to configure the <code>rundeck<\/code> user in the sudoers file.<\/li>\n\n\n\n<li>A basic understanding of Linux commands and SSH.<\/li>\n<\/ul>\n\n\n<h2>Implementation<\/h2>\n<p>In this post, we will explain how to add simple Rundeck jobs. We are not going to cover how to install Rundeck on the host. This post assumes that Rundeck is installed and running on port 8000.<\/p>\n<p><strong>Configure the Rundeck user on the remote host:<\/strong><\/p>\n<pre>useradd rundeck\npasswd rundeck\nchage -I -1 -m 0 -M 99999 -E -1 rundeck\n\nCopy the key rundeck from rundeck server to client hosts.<\/pre>\n<pre>ssh-copy-id -i ~\/.ssh\/id_rsa.pub rundeck@$ip\n<\/pre>\n<p>Add the Rundeck user to the sudoers file(visudo).<\/p>\n<pre>Defaults:rundeck requiretty\nrundeck ALL=(ALL) NOPASSWD: ALL<\/pre>\n<p>Let&#8217;s create a new project from the Rundeck interface.<a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.44.45-PM.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignright  wp-image-639\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.44.45-PM.png\" alt=\"newproject\" width=\"1350\" height=\"109\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Select the project and, under Job Actions, select New Job.<br \/><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.50.11-PM.png\"><img decoding=\"async\" class=\"alignleft wp-image-640\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.50.11-PM.png\" alt=\"newjob\" width=\"574\" height=\"281\" \/><\/a><br \/>Add the requested information.<br \/>Job Name =<br \/>Description =<\/p>\n<p>The following is the key information that we should decide based on our requirements.<\/p>\n<p><strong>Options:<\/strong><\/p>\n<p>Scenario1:<\/p>\n<p>In case we are executing the jobs for a particular case, we can use option values that will be restricted to particular values. Add the information below for the option values.<br \/><br \/><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.56.46-PM.png\"><img decoding=\"async\" class=\"alignright  wp-image-646\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-2.56.46-PM.png\" alt=\"Job_name\" width=\"1369\" height=\"553\" \/><\/a><\/p>\n<p>Option Name: &lt; your-option-name&gt;<\/p>\n<p>Default Value:&lt;your values&gt; Leave it blank in case we don&#8217;t want to give any name.<\/p>\n<p>Input Type: Plain Text(preferably)<\/p>\n<p>Allowed Values: List<\/p>\n<p>Restrictions:None<\/p>\n<p>Required:Yes<\/p>\n<p>Multi-valued:&lt;ur selection&gt; Depends on the application\/script use case.<br \/><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-3.26.49-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright  wp-image-647\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-28-at-3.26.49-PM.png\" alt=\"optionvalues\" width=\"1351\" height=\"609\" \/><\/a><\/p>\n<p><em>Note down the Usage values in case you are going to use these values if you will be using these option values in the script\/application.<\/em><\/p>\n<p><strong>Workflow:<\/strong><\/p>\n<p>Next comes the interesting part\/creative part of Rundeck. There will be multiple options which you can select.<\/p>\n<p><i class=\"rdicon icon-small shell\"><\/i> <em>Command <span class=\"text-info\">&#8211; Execute a remote command:\u00a0<\/span><\/em><span class=\"text-info\"> This option is to execute a remote command, i.e., on a remote host<\/span><\/p>\n<p><em> Script <span class=\"text-info\">&#8211; Execute an inline script<\/span> <\/em><\/p>\n<p><em> Script file or URL <span class=\"text-info\">&#8211; Execute a\u00a0local script\u00a0file or a\u00a0script\u00a0from a\u00a0URL<\/span> <\/em><\/p>\n<p>There are multiple options that you can use depending on your requirements, like scheduling, sending notifications, etc.<\/p>\n<p>Click on Create. That&#8217;s it \ud83d\ude42 You had create a first job on Rundeck<\/p>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Rundeck provides a simple and centralized way to execute commands and scripts on remote servers. By configuring SSH access for the <code>rundeck<\/code> user and creating projects and jobs through the web interface, routine administrative tasks can be automated efficiently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The job workflow can be further enhanced by adding options, schedules, notifications, scripts, and other workflow steps based on the application&#8217;s requirements. This makes Rundeck useful for simplifying repetitive server administration and operational tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is Rundeck used for?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Rundeck is used to automate and execute commands, scripts, and administrative tasks on remote servers through a centralized interface.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Do I need to install Rundeck on the remote server?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Rundeck needs to be installed on the Rundeck server. The remote server only needs SSH access and a properly configured <code>rundeck<\/code> user.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Why is the <code>rundeck<\/code> user required on the remote host?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>rundeck<\/code> user allows Rundeck to connect to the remote host through SSH and execute the required commands or scripts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<strong>:<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business?. Our experts can help with\u00a0web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Rundeck is an automation and job orchestration tool that allows administrators to execute commands and scripts on remote servers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-631","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ab","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=631"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/631\/revisions"}],"predecessor-version":[{"id":11714,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/631\/revisions\/11714"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}