debuglevel / ansible-role-reverseproxy

Repository from Github https://github.comdebuglevel/ansible-role-reverseproxyRepository from Github https://github.comdebuglevel/ansible-role-reverseproxy

ansible-role-reverseproxy

Requirements

Add to your requirements.txt:

passlib==1.7.4

Role Variables

Dependencies

Example Playbook

- name: Ensure reverse proxy
  hosts: root_server
  become: true
  roles:
    - debuglevel.reverse_proxy
  # tags:
  #   - base
  #   - base:users

Usage

Add this in your requirements.yaml:

roles:
  - name: debuglevel.template
    src: https://github.reverse_proxy/debuglevel/ansible-role-reverse_proxy
    version: <commit hash>

Linting and Testing

Install Ansible with pip3 install --requirement requirements.txt.

Lint YAML files with yamllint:

  1. Install via pip3 install yamllint.
  2. Lint using yamllint ..
  3. It is configured in .yamllint, in case you want to modify it.

Lint Ansible with ansible-lint:

  1. Install via pip3 install ansible-lint.
  2. Run ansible-lint to check for common issues or bad practices.
  3. Reformat it with ansible-lint --write.

Test the role with molecule:

  1. (Maybe install collections first using ansible-galaxy install --role-file requirements.yaml; maybe use --force)
  2. molecule test --all

About

License:MIT License


Languages

Language:Jinja 61.8%Language:Python 38.2%