Skip to main content

A butler CLI for assistance in managing Ansible projects

Project description

ansible-butler

Butler CLI for Ansible projects

Functions

Object Action Description
directory init initialize an ansible directory
role list list roles
role clean clean role directory structure (remove empty yml files & dirs)
role mk-readme auto generate readme based on role meta and basic yml info

Usage

Usage:
  ansible-butler.py directory init [(-d=DIR|--directory=DIR)]
  ansible-butler.py role list [--roles-path=PATH] [<name>]
  ansible-butler.py role clean [--roles-path=PATH] [<name>]
  ansible-butler.py role mk-readme [--roles-path=PATH] [<name>]

Arguments:
  name    name of role (accepts glob patterns)

Options:
  -h --help                               Show this screen
  -d --directory=DIR   Location to initialize ansible directory structure [default: ./]
  --roles-path=PATH   Path to roles directory [default: ./roles]

Examples

  • Initialize Ansible Directory
    • ansible-butler directory init ./sandbox
  • Clean Roles
    • ansible-butler role clean my-role-1
    • ansible-butler role clean my-role-*
  • Generate README
    • ansible-butler role mk-readme my-role-1
    • ansible-butler role mk-readme my-role-*

Troubleshooting

  • ansible-butler: command not found
    • check the $PATH environment variable and ensure that ~/.local/bin is included

License

GNU General Public License

Author Information

Zach LeBlanc

Red Hat

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-butler-1.0.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

ansible_butler-1.0.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file ansible-butler-1.0.0.tar.gz.

File metadata

  • Download URL: ansible-butler-1.0.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for ansible-butler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 42e1d3ea3516f5370642c68d6a08303dec74af03bd01ecce27c6f4b4fe0b1123
MD5 86fa5cab3881bc7e94c63d707030f31d
BLAKE2b-256 263018fadc21de70687134dd8168b4c45a0a5d9ed5cbf8b10b392779d936a3a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ansible_butler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4351018720efad6597c497ccb88a1214cd1ac817a19037c6255fca5d7856fba
MD5 00c813d2304806e904f40e6fecddfc30
BLAKE2b-256 9771901893ed634a025234c88e066a1bea709880242c27ec44f8e3d2e2a8343e

See more details on using hashes here.

Supported by

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