galaxy-role-skeleton is used to quickly create new ansible roles.
- ansible-galaxy command
- Python
Used as the roles repository name in cases where you have a single role per repository.
ansible-role-myrole
Used when creating a new role using this project.:
myrole
Clone your customised personal or business fork to your Ansible projects directory
mkdir ~/projects
cd ~/projects
git clone git@github.com:cjsteel/galaxy-role-skeleton.git
ansible-galaxy init --role-skeleton=ALTERNATIVE_ROLE_SKELETON_PATH role-short-name
mkdir -p ~/projects/your-ansible-project/roles
cd ~/projects/your-ansible-project/roles
ansible-galaxy init --role-skeleton=~/projects/galaxy-role-skeleton/skeleton role-short-name -vvv
cd ~/projects/your-ansible-project/roles
ansible-galaxy init --role-skeleton=~/projects/galaxy-role-skeleton/skeleton -f existing-role-short-name -vvv
molecule init scenario -s default -d lxd -r role-short-name
touch molecule/default/pytest.ini" like this one.
[pytest]
addopts = -p no:cacheprovider -p no:stepwise
License: MIT