Add to your requirements.txt:
passlib==1.7.4
- name: Ensure reverse proxy
hosts: root_server
become: true
roles:
- debuglevel.reverse_proxy
# tags:
# - base
# - base:usersAdd this in your requirements.yaml:
roles:
- name: debuglevel.template
src: https://github.reverse_proxy/debuglevel/ansible-role-reverse_proxy
version: <commit hash>
Install Ansible with pip3 install --requirement requirements.txt.
Lint YAML files with yamllint:
- Install via
pip3 install yamllint. - Lint using
yamllint .. - It is configured in
.yamllint, in case you want to modify it.
Lint Ansible with ansible-lint:
- Install via
pip3 install ansible-lint. - Run
ansible-lintto check for common issues or bad practices. - Reformat it with
ansible-lint --write.
Test the role with molecule:
- (Maybe install collections first using
ansible-galaxy install --role-file requirements.yaml; maybe use--force) molecule test --all