forked from hellofresh/ansible-oauth2-proxy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
role.yml
30 lines (25 loc) · 753 Bytes
/
role.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- hosts: all
roles:
- role_under_test
pre_tasks:
- name: create test directory
file:
path: "{{ oauth2_test_dir }}"
state: directory
- name: create sample file
copy:
content: "This file should be viewable after authentication."
dest: "{{ oauth2_test_dir }}/index.html"
vars:
oauth2_test_dir: "/var/www"
oauth2_proxy_config:
http_address: "0.0.0.0:5000"
upstreams: [ "file://{{ oauth2_test_dir }}/#/" ]
provider: "github"
email_domains: "*"
cookie_secure: false
cookie_domains: "localhost:5000"
cookie_secret: "{{ 'COOK_SECRET' | b64encode }}"
client_id: "YOUR_CLIENT_ID"
client_secret: "CLIENT_SECERET"