Skip to content

vranac/ansible-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Ansible Helper Script

Simple bash script to help with Ansible directory structure generation. This script will generate the directory structure according to Ansible Best Practices Directory Layout The script tries to determine if ansible-galaxy is present and use it for role creation. The script currently DOES NOT SUPPORT the -s parameter (for the role api server).

Usage

ansible-helper.sh -p "provision here" -r{"apache","mysql","gearman"}

The command above will create the ansible structure in the "./provision here" directory, with roles apache, mysql and gearman

ansible-helper.sh -r{"apache","mysql","gearman"} -o

The command above will create the the roles apache, mysql and gearman in current directory

If you do not specify the ansible project directory, the script will execute in current directory.

If you do not specify the roles, the script will generate a common role.

Use ansible-helper.sh -i for options

About

Simple bash script to help with Ansible directory structure generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages