You've already forked cookiecutter-ansible-role
Add requirements
This commit is contained in:
@@ -4,15 +4,16 @@ clean:
|
|||||||
find . -name '*.py[co]' -delete
|
find . -name '*.py[co]' -delete
|
||||||
|
|
||||||
virtualenv:
|
virtualenv:
|
||||||
virtualenv --prompt '|> ansible-role-common <| ' .venv
|
virtualenv --prompt '|> {{ cookiecutter.role_title | lower | replace(' ','_') }} <| ' .venv
|
||||||
.venv/bin/pip install --upgrade pip
|
.venv/bin/pip install --upgrade pip
|
||||||
.venv/bin/pip install -r requirements.txt
|
.venv/bin/pip install -r requirements.txt
|
||||||
.venv/bin/ansible-galaxy collection install -r requirements.yml
|
.venv/bin/ansible-galaxy collection install -r requirements.yml
|
||||||
@echo
|
@echo
|
||||||
@echo "VirtualENV Setup Complete. Now run: source .venv/bin/activate"
|
@echo "VirtualENV Setup Complete. Now run: source .venv/bin/activate"
|
||||||
@echo
|
@echo
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
||||||
test:
|
test: virtualenv
|
||||||
for distro in almalinux9 ; do \
|
for distro in almalinux9 ; do \
|
||||||
MOLECULE_DISTRO=$$distro molecule test --all ; \
|
MOLECULE_DISTRO=$$distro molecule test --all ; \
|
||||||
done
|
done
|
||||||
|
|||||||
6
{{ cookiecutter.role_name }}/requirements.txt
Normal file
6
{{ cookiecutter.role_name }}/requirements.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
ansible-core<2.17
|
||||||
|
ansible-compat<4
|
||||||
|
molecule[docker]<5.0.0
|
||||||
|
ansible-lint==6.16.2
|
||||||
|
yamllint==1.32.0
|
||||||
|
passlib==1.7.4
|
||||||
Reference in New Issue
Block a user