Ansible roles
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.
 
 
 
 
 
 

23 lines
692 B

---
- name: Deploy local configuration
template: src=config_local.py.j2 dest={{ pga_root_dir }}/lib/python3.6/site-packages/pgadmin4/config_local.py
notify: restart pgadmin4
tags: pgadmin4
- name: Check if the config DB exists
stat: path={{ pga_root_dir }}/data/pgadmin4.db
register: pga_db
tags: pgadmin4
- name: Initial setup of pgadmin4
expect:
command: "{{ pga_root_dir }}/bin/python {{ pga_root_dir }}/lib/python3.6/site-packages/pgadmin4/setup.py"
echo: true
responses:
'Email address:\s?': "admin@{{ ansible_domain }}"
'(Retype )?[Pp]assword:\s?': "pgadmin"
become_user: pgadmin4_{{ pga_id }}
when: not pga_db.stat.exists
tags: pgadmin4