This role will assume the setup of oauth2-proxy.
It's part of the ELAO Ansible stack but can be used as a stand alone component.
- Ansible 1.9.0+
None.
Using ansible galaxy:
ansible-galaxy install elao.oauth2-proxy
You can add this role as a dependency for other roles by adding the role to the meta/main.yml file of your own role:
dependencies:
- { role: elao.oauth2-proxy }
Name | Type | Description |
---|---|---|
oauth2-proxy restart |
Service | Restart oauth2 proxy |
Name | Default | Type | Description |
---|---|---|---|
elao_oauth2_proxy_package_version |
2.0.1-elao3 | String | Package version |
elao_oauth2_proxy_config_file |
/etc/oauth2-proxy/config.cfg | String | Config file |
elao_oauth2_proxy_config_template |
config/base.cfg.j2 | String | Config template |
elao_oauth2_proxy_config |
[] | Array | Config |
elao_oauth2_proxy_config:
- http_address: 0.0.0.0:80
- request_logging: true
- upstreams:
- http://127.0.0.1:8080/
- email_domains:
- manalas.com
- client_id: oauth2_client_id
- client_secret: oauth2_client_secret
- cookie_name: _oauth2_proxy
- cookie_secret: cookie_secret
- cookie_domain: .manalas.com
- cookie_expire: 168h
- cookie_refresh: 1h
- cookie_secure: true
- cookie_httponly: true
- skip_auth_regex:
- /foo
- hosts: servers
roles:
- { role: elao.oauth2-proxy }
MIT