Compare commits

...

2 Commits

Author SHA1 Message Date
Jan Dittberner 2db1ba3c05 Fix handling of missing sections
This commit makes sure that a missing section in an older toml
configuration file does not break the deployment.
9 months ago
Jan Dittberner 10fd052d90 Install vim and tmux for convenience 9 months ago

@ -116,6 +116,7 @@
demoapp_client_secret: "{{ lookup('ansible.builtin.ini', 'client-secret', section='oidc', file='demoapp_config-from-vagrant.toml') | from_json }}"
demoapp_auth_key: "{{ lookup('ansible.builtin.ini', 'auth-key', section='session', file='demoapp_config-from-vagrant.toml') | from_json }}"
demoapp_enc_key: "{{ lookup('ansible.builtin.ini', 'enc-key', section='session', file='demoapp_config-from-vagrant.toml') | from_json }}"
ignore_errors: true
when: demoapp_config_st.stat.exists

@ -101,6 +101,7 @@
idp_csrf_key: "{{ lookup('ansible.builtin.ini', 'csrf.key', section='security', file='idp_config-from-vagrant.toml') | from_json }}"
idp_auth_key: "{{ lookup('ansible.builtin.ini', 'auth-key', section='session', file='idp_config-from-vagrant.toml') | from_json }}"
idp_enc_key: "{{ lookup('ansible.builtin.ini', 'enc-key', section='session', file='idp_config-from-vagrant.toml') | from_json }}"
ignore_errors: true
when: idp_config_st.stat.exists

@ -1,11 +1,18 @@
---
- name: Install basic developer tools
ansible.builtin.apt:
name:
- vim
- tmux
update_cache: true
become: true
- name: Prepare mkcert
block:
- name: Install mkcert
ansible.builtin.apt:
name: mkcert
update_cache: true
become: true
- name: Install mkcert CA

Loading…
Cancel
Save