๐ Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
- name: install postgres for self-hosted deployment
|
|
|
|
include_tasks: install.yml
|
|
|
|
when: database_self_hosted | d(false) == true
|
|
|
|
|
|
|
|
|
|
|
|
- name: add database
|
|
|
|
include_tasks:
|
|
|
|
file: add_database.yml
|
|
|
|
apply:
|
|
|
|
delegate_to: "{{ inventory_hostname if (database_self_hosted | d(false) == true) else services.db.hostname }}"
|
|
|
|
vars:
|
|
|
|
database:
|
|
|
|
name: "{{ database_name }}"
|
|
|
|
user: "{{ database_user }}"
|
|
|
|
pass: "{{ database_pass }}"
|
|
|
|
self_hosted: "{{ database_self_hosted | d(false) }}"
|