name | about | comments | feedback |
---|---|---|---|
ansible-galaxy-role-skeleton |
Project template for Ansible Galaxy Roles. |
true |
true |
Ansible Galaxy Role Skeleton is used to quickly create new Ansible Galaxy roles.
- Ansible 2.9+
- Python 3.4+
Used as the roles repository name in cases where you have a single role per repository.
ansible-role-%{specific_role}
Used when creating a new role using this project.:
%{specific_role}
Clone your customised personal or business fork to your Ansible projects directory
mkdir ~/projects
cd ~/projects
git clone git@gitlab.cherubits.hu:oss/ansible-galaxy-roles/ansible-galaxy-role-skeleton.git
export ALTERNATIVE_ROLE_SKELETON_PATH=~/projects/ansible-galaxy-role-skeleton
ansible-galaxy init --role-skeleton=ALTERNATIVE_ROLE_SKELETON_PATH %{specific_role}
mkdir -p ~/projects/ansible-%{specific_project}-playbook/roles
cd ~/projects/ansible-%{specific_project}-playbook/roles
ansible-galaxy init --role-skeleton=~/projects/ansible-galaxy-role-skeleton/skeleton %{specific_role} -vvv
cd ~/projects/ansible-galaxy-role-skeleton/roles
ansible-galaxy init --role-skeleton=~/projects/ansible-galaxy-role-skeleton/skeleton -f %{short-name-of-existing-role} -vvv
virtualenv --python=/usr/bin/python3.7 .env
source .env/bin/activate
pip install molecule docker molecule[lint] molecule[docker]
molecule init scenario -s default -d lxd -r %{short-name-of-role}
touch molecule/default/pytest.ini" like this one.
[pytest]
addopts = -p no:cacheprovider -p no:stepwise