Rundeck - Execute ansible playbook on a remote ansible server - rundeck

New in Rundeck
What i'm trying to achieve with rundeck is the following -
to let a windows user connect rundeck and execute predefined ansible playbooks that are located on a remote ansible server. Doing this will not require the user to connect the ansible server (i dont need to share password) and only approved user that can login to rundeck can run the scripts
Is it possible to install Rundeck on a windows machine and execute ansible scripts that are located on a remote ansible server?
Can i see the playbook output on rundeck UI?
If not, should I run rundeck on the local ansible server?
Can i have all the above using the community Rundeck version ?

By design Rundeck and Ansible must coexist in the same server to use the Ansible plugin but, you can dispatch Ansible commands (ansible-playbook) on remote servers using the command step.

Related

I want to install and connect to openVPN on windows machine through windows CLI commands

I want to install and connect to openVPN on windows machine through windows CLI commands, please help
In ubuntu machine we are able to install and connect it but through windows command prompt we are unable to do it, please help
These commands I need to execute in azure devops pipeline which runs on microsoft hosted windows machine
Run OpenVPN from a command prompt Window with a command such as: openvpn myconfig.ovpn. ...

Download file on computer From Rundeck

Is it possible to download a file from a server through a script Rundeck on my personnal computer ?
Regards,
Frédéric
First scenario. The Rundeck server is running on your machine: just using a script with curl / wget to download the file locally (using a local path).
Second scenario. The Rundeck server isn't on your computer: just set up an HTTP/bucket server, and print the download link in the Rundeck job output.

How to run a GitHub Enterprise action runner as an administrator to allow scripts to run with elevated privileges?

I'm using GitHub Enterprise with a self-hosted runner that runs on my dev server to accept the build and deploy commands to that server. The build steps are running successfully, but I'm struggling with the deploy steps. The application that is being deployed is an IIS application and I'm trying to run a powershell script I've written to perform the IIS update (stops the IIS server, copies build package contents over to inetpub, starts the IIS server). When the runner executes this script, it fails because it doesn't have permissions to replace the inetpub contents, among other permissions issues. Until now with GitHub Enterprise, I would just run this step as administrator, but I can't find a way to elevate the runner's privileges to do so. Is there syntax for this? This is what I'm currently trying:
- name: Deploy
shell: cmd
run: |
cd myBuildLocation
powershell -file deployrelease.ps1 -inetpubPath C:\inetpub\mySiteName

Run a self-hosted agent in Docker

I am trying to run a self- hosted agent in docker, I have created the dockerfile and start.ps1 files and installed the Azure DevOps Server Express Admin console. I am getting a "Basic authentication requires a secure connection to the server " when I try running the container in docker ( switched windows containers) URL: http://computername/DefaultCollection
I have also attached a screenshot of the error
can you please advise how to resolve this issue.
Docker Run error
thanks
Run a self-hosted agent in Docker
I could not reproduce this issue on my side with hosted agent windows-2019.
To test this issue, I created a folder dockeragent in my Azure repo, which including the files Dockerfile and start.ps1:
Then copy the content from the document Run a self-hosted agent in Docker to those two files.
Next, create a pipeline with an inline powershell task to create the docker image and run docker container:
cd $(System.DefaultWorkingDirectory)\dockeragent
docker build -t dockeragent:latest .
docker run -e AZP_URL=https://dev.azure.com/<YourOrganizationName> -e AZP_TOKEN=<YourPAT> -e AZP_AGENT_NAME=mydockeragent dockeragent:latest
The test result:
To make it work, please make sure the file Dockerfile and start.ps1 is correct without any change.
If above info not help you, please share the content of your Dockerfile and the steps you did.
Your are using azureDevOps without https.
Registering your PiplineAgent via PAT requires https (hence the error: "Basic authentication requires a secure connection to the server".
Try using other authentication Methoden (negotiation, which uses windows authentication)

Is this possible to deploy OSGI bundle into karaf container via script?

I want to deploy the OSGI bundle into karaf container through script file. The script could be PERL or ANT. Here the steps to deploy it into the container.
karaf>ssh -p 8101 admin#localhost
Enter password :admin
karaf>osgi:install -s file:<location-file>
karaf>logout
I have tried via PERL script but unable to give password in script file itself.
Is there any alternative way to enter ssh console without password? Or Is this possible to deploy OSGI bundle via script?
There comes a client shell script, you should be able to pass a "shell script" to it via command line, so no need to use ssh since the client script already does connect to the karaf shell internally.
For scripting with Karaf you might also want to take a look at Karaf Documentation about scripting