Skip to content

Perdu/ansible-pglister

Repository files navigation

ansible-pglister

Ansible script to install pglister.

/!\ Copy of the Gitlab repository, may not be up-to-date. Please use Gitlab /!\

Status: the script is finished, but necessary patches are still in the process of being integrated upstream. In the meantime, repositories are still pointing to my own forks.

Install

ansible-galaxy install -r requirements.yml
ansible-galaxy collection install https://gitlab.com/cmatte/ansible-pglister.git

Example playbook

---

- name: Example playbook
  hosts: all
  become: true

  vars_file:
    - vars/defaults.yml

  roles:
    - {role: 'exim_pglister', tags: 'exim_pglister'}
    - {role: 'pglister', tags: 'pglister'}
    - {role: 'pgarchives', tags: 'pgarchives'}
    - {role: 'pgarchives_private', tags: 'pgarchives_private'}
    - {role: 'pgweb', tags: 'pgweb'}

Variables

Some variables can and should be configured. See here.

Redeployment

You can reduce the tasks to repository and related files redeployment using the redeploy option, e.g. using -e "{redeploy: True}" from the command line.

Using the pre_deployment option, you can also skips some tasks when correct DNS is not set up (e.g. pglister_sync or let's encrypt).

Testing

Install the following dependencies:

  • molecule
  • molecule-plugins
  • docker

Then run:

molecule test

Authors