--- - 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