Files
k3s/roles/gogs/tasks/main.yaml
T
2017-06-08 23:04:12 +03:00

32 lines
827 B
YAML

- name: run gogs docker container
docker:
name: gogs
image: gogs/gogs
detach: True
restart_policy: always
net: default
volumes:
- "/var/gogs:/data"
ports:
- "0.0.0.0:{{ gogs_port }}:3000"
state: reloaded
- name: oauth config
blockinfile:
dest: /var/gogs/gogs/conf/app.ini
block: |
[oauth]
ENABLED = true
[oauth.google]
ENABLED = true
CLIENT_ID = `259977835489-5lrmult5iimh3f7dik848fb00mn8td2j.apps.googleusercontent.com`
CLIENT_SECRET = `3xzC51fw-yBeWv63pxYlmYE7`
SCOPES = `https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`
AUTH_URL = `https://accounts.google.com/o/oauth2/auth`
TOKEN_URL = `https://accounts.google.com/o/oauth2/token`
notify: restart gogs docker