You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/roles/management/tasks/main.yaml

33 lines
822 B
YAML

---
### tags:
- name: "Creating smardigo user token"
smardigo_user_token:
secret: "{{ connect_jwt_secret }}"
user_id: "{{ connect_admin_username }}"
register: smardigo_user_token_result
delegate_to: 127.0.0.1
tags:
- update_deployment
- name: "Setting smardigo_auth_token_value as fact"
set_fact:
smardigo_auth_token_value: "{{ smardigo_user_token_result.token }}"
tags:
- update_deployment
- name: "Create database for <{{ inventory_hostname }}> if necessary"
include_role:
name: connect-postgres
vars:
ansible_ssh_host: "{{ stage }}-postgres-01.{{ domain }}"
- name: "Create realm for <{{ inventory_hostname }}> if necessary"
include_role:
name: connect-realm
- name: "Create connect for <{{ inventory_hostname }}> if necessary"
include_role:
name: connect