๐Ÿ“— 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

20 lines
502 B

2 years ago
- name: install postgres for self-hosted deployment
include_role:
name: postgres
vars:
function: install
when: database_self_hosted | d(false) == true
- name: add database
include_role:
name: postgres
apply:
delegate_to: "{{ inventory_hostname if (database_self_hosted | d(false) == true) else services.db.hostname }}"
vars:
function: add_database
database:
name: "{{ database_name }}"
user: "{{ database_user }}"
pass: "{{ database_pass }}"