Skip to main content

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.cfg file with sane defaults
  • Starter .gitignore
  • ssh.config ready 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 --force option
  • Full support for automation scripting

👉 License

MIT License


📢 Author

Dayton Jones
PyPI ProfileGitHub Profile


💡 Todo / Future Plans

  • Optional support for ansible-vault starter integration
  • Project templates (for common layouts)
  • Plugin-based architecture for customizations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_scaffold-1.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_scaffold-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for ansible_scaffold-1.0.0.tar.gz
Algorithm Hash digest
SHA256 668797aba8cbd4fb24557edfb3482c81bcf8c37ca5695d8449a1fca04e286232
MD5 47f4414cb268e9fea0fcb1ca4b55f5f2
BLAKE2b-256 c200dfea591d7f4a475e911bad489a3b1d0a9f4462c8617d94a641d98b5fc0a8

See more details on using hashes here.

File details

Details for the file ansible_scaffold-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_scaffold-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 076577330475ed4b5a8d8e50b7ff83f2b68f444dc2a1c62170590e086ff5e8d7
MD5 e87a0a3d5b1df1995d5051f576f9fdd4
BLAKE2b-256 87705987b79f258f735c09c330ae12c371f34d09151f97a396b1c525620f1150

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page