RouterBase provides an OpenAI-compatible API gateway at https://routerbase.com/v1.
This collection helps configure RouterBase environment files for applications, CI runners, and servers managed by Ansible.
After the collection is published on Ansible Galaxy:
ansible-galaxy collection install routerbase.routerbaseFrom GitHub:
ansible-galaxy collection install git+https://github.com/RouterBase/ansible-routerbase.git- hosts: localhost
gather_facts: false
tasks:
- name: Write RouterBase environment file
routerbase.routerbase.routerbase_env:
path: .env.routerbase
api_key: "{{ lookup('env', 'ROUTERBASE_API_KEY') }}"
model: google/gemini-2.5-flashThe generated file includes:
ROUTERBASE_BASE_URLROUTERBASE_API_KEY, when providedROUTERBASE_MODELOPENAI_BASE_URLOPENAI_API_KEY, when provided
MIT