๐Ÿ“— 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/mail-db/tasks/user.yml

11 lines
273 B

2 years ago
- name: create user
include_role:
name: postgres
apply:
delegate_to: "{{ mail_server.db_server_hostname }}"
vars:
function: run_query
query:
database: "{{ mail_server.db_name }}"
text: "{{ lookup('template', './templates/user.j2') }}"