Skip to content

NilashishC/ansible-creator-server

Repository files navigation

Publish Image

Ansible Creator Server

Usage

podman run --name=ansible-creator-svc -d -p 5000:5000 ghcr.io/nilashishc/ansible-creator-server:latest

Scaffolding an Ansible collection

curl 'localhost:5000/init?collection=testns.testorg' --output testns-testorg.tar

Scaffolding an Ansible playbook project

curl 'localhost:5000/init?project=ansible-project&scm_org=ansible&scm_project=devops' --output ansible-devops-project.tar

Untar to get scaffolded contents:

tar -xvf </path/to/tar>

Debugging

Log into the running container inspect the logs:

podman exec -it ansible-creator-svc /bin/bash
cat ansible-creator-svc-<utc timestamp>.log
cat ansible-creator.log