ansible-postgresql-role icon indicating copy to clipboard operation
ansible-postgresql-role copied to clipboard

how to modify this to adapt my project?

Open alexzhuke opened this issue 10 years ago • 2 comments

Hi,

I noticed this project can be used in my project which should deploy the postgresql on remote machine and configure it .

I'm the fresh man in Ansible area, at least not too fresh to write ansible-playbooks. How could I reuse your playbook on my project? I means change simple configurations or parameters.

alexzhuke avatar Mar 16 '15 13:03 alexzhuke

Hi. You can override any configuration params from https://github.com/zzet/ansible-postgresql-role/blob/master/defaults/main.yml

$ ansible-galaxy install zzet.postgresql
- hosts: db
  vars:
    # here you can override some params
    # ex
    pg_version: 9.4
  roles:
    - role: zzet.postgresql
      # here you can also override params

zzet avatar Mar 16 '15 13:03 zzet

thanks , I will try it tomorrow.

alexzhuke avatar Mar 16 '15 13:03 alexzhuke