automation enabled community medium v1.0.0

ansible-playbook

Ansible playbook executor that can spawn a shell via crafted playbook with shell tasks.

📋 Live Preview
ansible-playbook {0}
📎 0
ansible-playbook {0}

Sandbox: execFile · Timeout: 60s

Capabilities

security.execution.command
security.privilege-escalation.shell

Contract

Inputs

system.file.path

Path to ansible playbook

Outputs

process.output

Shell or command output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Consumes

system.file.path

Resource Profile

ResourceValue
CPUlow
Memory32 MB
Networklow
Disk I/Olow

Examples

Spawn interactive shell via crafted playbook

echo '[{hosts: localhost, tasks: [shell: /bin/sh </dev/tty >/dev/tty 2>/dev/tty]}]' >/path/to/temp-file
ansible-playbook /path/to/temp-file

Documentation

ansible-playbook — Ansible Playbook Runner

Executes Ansible playbooks. By crafting a playbook with a shell task, it can spawn an interactive shell when used with sudo.

Related Tools

ansible-test

References