oidc-parent/deployment/01_install_cacert_oidc.yml
Jan Dittberner 5daa87ca90 Add local preconditions and Vagrantfile
This commit adds a role to ensure local preconditions (i.e. mkcert) and
a Vagrantfile to test the ansible playbook in a local virtual machine.
2022-08-18 11:58:24 +02:00

44 lines
882 B
YAML

---
- name: Install development tools
hosts: all
become: false
roles:
- prepare_devtools
- name: Setup database
hosts: pgsqlserver
become: true
pre_tasks:
- name: Install package python3-psycopg2
ansible.builtin.package:
name: python3-psycopg2
state: present
# The ACL package is required to run commands as the postgres user
# See https://docs.ansible.com/ansible-core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
- name: Install package acl
ansible.builtin.package:
name: acl
state: present
roles:
- hydra_database
- name: Install authorization server
hosts: authserver
become: true
roles:
- hydra_server
- oidc_idp
- oidc_client_registration
- name: Install demo application
hosts: demoserver
become: true
roles:
- oidc_demo_application