https://github.com/mycloudlab/scaffolder-backend-module-ansible-controller
Ansible controller backstage integration
https://github.com/mycloudlab/scaffolder-backend-module-ansible-controller
Last synced: 6 months ago
JSON representation
Ansible controller backstage integration
- Host: GitHub
- URL: https://github.com/mycloudlab/scaffolder-backend-module-ansible-controller
- Owner: mycloudlab
- Created: 2024-09-05T11:00:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T10:19:01.000Z (about 1 year ago)
- Last Synced: 2025-04-02T11:25:16.583Z (about 1 year ago)
- Language: TypeScript
- Size: 528 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @mycloudlab/scaffolder-backend-module-ansible-controller

Plugin used to integrate ansible with backstage.
This plugin allows the execution of an ansible job-template from an action in the template step.
## install on RHDH
Check integrity version using command:
```bash
# please change to especific version
curl -sL https://registry.npmjs.org/@mycloudlab/scaffolder-backend-module-ansible-controller/ | jq '.dist.integrity' -r
```
```yaml
# add entry dynamic-plugins-rhdh config map
# please change to especific version
plugins:
- package: '@mycloudlab/scaffolder-backend-module-ansible-controller@'
integrity: ''
disabled: false
```
## how to use
Configure your `app-config.yaml` with this entry.
```yaml
# app-config.yaml
...
integrations:
ansible-controller:
- name: my-controller
url: https://aap.host.com
username: username
password: password
```
Configure your template call to ansible:
```yaml
# your template
steps:
- id: call-ansible
name: Calling ansible to launch
action: ansible-controller:job_template:launch
input:
controller: my-controller
job_template: Demo Job Template
extra_vars:
execution_count: ${{ parameters.execution_count }}
fail_execution: ${{ parameters.fail_execution }}
```