Ancli is a CLI to create and maintain Ansible projects.
Inspired by the office Ansible directory layout recommendations
- Download the latest binary release by clicking here
- Drop the
ancli
binary into a preferred path - Binary can be run using
ancli
if added to the $PATH or/path/to/ancli
. See commands below.
ancli create --name <name-of-project>
Example: ancli create --name myAnsibleProject
Need to add roles? Simply reply with y
to the prompts and create as many roles as needed.
ancli new-role --name nameOfRole --project nameOfProject
Example: ancli new-role --name webservers --project primaryinfrastructure
$ ancli create --name testProject
Do you want to create Ansible role in this project? Y/n y
Enter the name of role: configureWebServers
Creating role configureWebServers...
Do you want to create Ansible role in this project? Y/n n
Project created successfully.
The above example creates the following project structure: