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 |
directory | init | cleanup 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 directory init [<dir>]
ansible-butler directory clean [<dir>] [--skip-roles]
ansible-butler role list [--roles-path=PATH] [<name>]
ansible-butler role clean [--roles-path=PATH] [<name>]
ansible-butler role mk-readme [--roles-path=PATH] [<name>]
Arguments:
name name of role (accepts glob patterns)
dir path to directory [default: ./]
Options:
-h --help Show this screen
--roles-path=PATH Path to roles directory [default: ./roles]
--skip-roles Flag to skip cleaning roles
Examples
- Initialize Ansible Directory
ansible-butler directory init ./sandbox
- Clean an Ansible Directory
ansible-butler directory clean ./sandbox
ansible-butler directory clean ./sandbox --skip-roles
- 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.4.tar.gz
(19.2 kB
view details)
Built Distribution
File details
Details for the file ansible-butler-1.0.4.tar.gz
.
File metadata
- Download URL: ansible-butler-1.0.4.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d3a2b361c6bbc4daddd5263115e981f8157abad27d2dfafba0fbff99c96a01 |
|
MD5 | e6bf5dd87ba07bce23afe70f34063f18 |
|
BLAKE2b-256 | 5df901d5a1774418534d0b3ecf66f44a84c95745556211e0d896ab4913fc02cb |
File details
Details for the file ansible_butler-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: ansible_butler-1.0.4-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d4110e068777b71ce2936446b233e79b509345612945efe00984c0c48cf587 |
|
MD5 | 22d72ea6e3893c5f77d3f18e70cded33 |
|
BLAKE2b-256 | 49276878f382e410ba85cd15845ad2168645cc3df6a1fbc9060587f21abd985d |