๐Ÿ“— 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.
ansible-playbooks/roles/postgres/tasks/integrate.yml

16 lines
506 B

2 years ago
- name: install postgres for self-hosted deployment
include_tasks: install.yml
2 years ago
when: database_self_hosted | d(false) == true
- name: add database
include_tasks:
file: add_database.yml
2 years ago
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) }}"