Use automatic token generation
This commit is contained in:
parent
908e5f78cb
commit
bcbb224787
3 changed files with 17 additions and 2 deletions
11
tasks.yml
11
tasks.yml
|
|
@ -45,6 +45,17 @@
|
||||||
environment:
|
environment:
|
||||||
PATH: '/home/{{ app_user }}/.local/bin:{{ poetry_user_path }}'
|
PATH: '/home/{{ app_user }}/.local/bin:{{ poetry_user_path }}'
|
||||||
|
|
||||||
|
- name: create ssh directory
|
||||||
|
file:
|
||||||
|
path: '{{ private_key_dir }}'
|
||||||
|
state: 'directory'
|
||||||
|
|
||||||
|
- name: copy private key
|
||||||
|
copy:
|
||||||
|
src: 'files/transip-client.key'
|
||||||
|
dest: '{{ private_key_dir }}/{{ private_key_name }}'
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: copy environment file
|
- name: copy environment file
|
||||||
template:
|
template:
|
||||||
src: 'templates/env.j2'
|
src: 'templates/env.j2'
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
DOMAINS="{{ app_domains | join(':') }}"
|
DOMAINS="{{ app_domains | join(':') }}"
|
||||||
TOKEN="{{ app_token }}"
|
|
||||||
SENTRY_DSN="{{ sentry_dsn }}"
|
SENTRY_DSN="{{ sentry_dsn }}"
|
||||||
|
PRIVATE_KEY_PATH="{{ private_key_dir }}/{{ private_key_name }}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
app_url: 'https://git.fudiggity.nl/sonny/transip_client.git'
|
app_url: 'https://git.fudiggity.nl/sonny/transip_client.git'
|
||||||
app_user: 'sonny'
|
app_user: 'sonny'
|
||||||
app_branch: '0.3.1'
|
app_branch: '0.4'
|
||||||
app_dir: '{{ ansible_env.HOME }}/apps/transip_client'
|
app_dir: '{{ ansible_env.HOME }}/apps/transip_client'
|
||||||
app_domains:
|
app_domains:
|
||||||
- fudiggity.nl
|
- fudiggity.nl
|
||||||
|
|
@ -57,6 +57,10 @@ sentry_dsn: !vault |
|
||||||
35393536636238653338393163373966356636653362343039366230636364363233376336383331
|
35393536636238653338393163373966356636653362343039366230636364363233376336383331
|
||||||
636663383661346534613533653133376534
|
636663383661346534613533653133376534
|
||||||
|
|
||||||
|
private_key_dir: '{{ ansible_env.HOME }}/.ssh'
|
||||||
|
private_key_name: 'transip-client.key'
|
||||||
|
login: 'SonnyBakker'
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- python3
|
- python3
|
||||||
- python3-dev
|
- python3-dev
|
||||||
|
|
|
||||||
Reference in a new issue