Create a clean starter Ansible scaffold structure quickly.
Project description
Ansible Scaffold
Create a clean, starter Ansible scaffold structure easily and quickly.
📈 Description
Ansible Scaffold is a lightweight CLI tool to instantly generate a fully organized Ansible project layout:
- Inventory directory with group_vars, host_vars, and hosts
ansible.cfgfile with sane defaults- Starter
.gitignore ssh.configready for Ansible ssh_connection- Roles structure with all subfolders (
tasks/,handlers/,defaults/, etc) - Playbooks directory
- Facts cache directory
- Optional default playbook creation
Perfect for automation, bootstrapping new environments, or kickstarting new projects.
🔄 Installation
pip install --user ansible-scaffold
Or clone and install locally:
git clone https://github.com/daytonjones/ansible-scaffold.git
cd ansible-scaffold
pip install --user -e .
🔄 Usage
ansible-scaffold [OPTIONS] [PATH]
If [PATH] is omitted, you will be prompted.
Options:
| Option | Long | Description |
|---|---|---|
-r |
--role ROLE |
Create a specific role (can be repeated) |
-d |
--default-playbook NAME |
Create a default playbook with given name |
-f |
--force |
Overwrite existing project directory without confirmation |
-n |
--no-prompt |
Skip interactive prompts (fully automatic) |
-t |
--no-tree |
Skip printing the generated project tree |
-h |
--help |
Show this help message and exit |
-v |
--version |
Show version and exit |
Examples
Create an Ansible scaffold interactively:
ansible-scaffold ~/my_ansible_project
Create a scaffold with multiple roles and a starter playbook automatically:
ansible-scaffold ~/new_project -r webserver -r database -d site --force --no-prompt
👉 Features
- Fast and clean structure generation
- Default ansible.cfg with best practices
- Automatic starter playbook with role entries
- Colorized, friendly CLI prompts
- Safe overwrite behavior with
--forceoption - Full support for automation scripting
👉 License
MIT License
📢 Author
Dayton Jones
✨ PyPI Profile ✨ GitHub Profile
💡 Todo / Future Plans
- Optional support for ansible-vault starter integration
- Project templates (for common layouts)
- Plugin-based architecture for customizations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_scaffold-1.0.0.tar.gz.
File metadata
- Download URL: ansible_scaffold-1.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
668797aba8cbd4fb24557edfb3482c81bcf8c37ca5695d8449a1fca04e286232
|
|
| MD5 |
47f4414cb268e9fea0fcb1ca4b55f5f2
|
|
| BLAKE2b-256 |
c200dfea591d7f4a475e911bad489a3b1d0a9f4462c8617d94a641d98b5fc0a8
|
File details
Details for the file ansible_scaffold-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ansible_scaffold-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
076577330475ed4b5a8d8e50b7ff83f2b68f444dc2a1c62170590e086ff5e8d7
|
|
| MD5 |
e87a0a3d5b1df1995d5051f576f9fdd4
|
|
| BLAKE2b-256 |
87705987b79f258f735c09c330ae12c371f34d09151f97a396b1c525620f1150
|