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
- check the $PATH environment variable and ensure that
License
GNU General Public License
Author Information
Zach LeBlanc
Red Hat
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
ansible-butler-1.0.1.tar.gz
(18.9 kB
view details)
Built Distribution
File details
Details for the file ansible-butler-1.0.1.tar.gz
.
File metadata
- Download URL: ansible-butler-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4481d3ca00186f7a40c68555737f66a1b3318ca71a36cdf4851e36ba1d24a55 |
|
MD5 | cbad3c7fccc4287fd9b590f1081f4b6c |
|
BLAKE2b-256 | 1b35c67365ae82d1cd3e9238f52e996ddff06054bb5e55fa38b1a37d9c91d407 |
File details
Details for the file ansible_butler-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ansible_butler-1.0.1-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0b262c527fa3dc2eec42b567146eb339de9edeb8cee88db4c11fcb816441f9 |
|
MD5 | 78ce6bf2d7110daf32e076bcc5867dda |
|
BLAKE2b-256 | 2a542c7f58a1705afd889966bb36411b2e0324ee67a8fb54ab6174190403926a |