ansible-role-postgresql/tasks/main.yml

65 lines
2.1 KiB
YAML

---
- name: Postgresql external repository
ansible.builtin.import_tasks: postgresql_org_repo.yml
- name: Manage the postgresql packages
ansible.builtin.import_tasks: postgresql-packages.yml
when: psql_postgresql_install
- name: Manage the postgis packages
ansible.builtin.import_tasks: postgis.yml
when: postgres_install_gis_extensions
- name: PostgreSQL configuration of deb systems
ansible.builtin.import_tasks: postgresql-config-deb.yml
when:
- psql_postgresql_install
- not postgresql_client_only
- ansible_distribution_file_variety == "Debian"
- name: PostgreSQL configuration of EL systems
ansible.builtin.import_tasks: postgresql-config-el.yml
when:
- psql_postgresql_install
- not postgresql_client_only
- ansible_distribution_file_variety == "RedHat"
- name: TLS setup
ansible.builtin.import_tasks: postgresql-ssl-config.yml
when:
- psql_postgresql_install
- not postgresql_client_only
- name: Kernel sysctl parameters
ansible.builtin.import_tasks: psql-kernel-sharedmem.yml
when:
- psql_postgresql_install
- psql_set_shared_memory
- not postgresql_client_only
- name: Configure access to the databases
ansible.builtin.import_tasks: configure-access.yml
when:
- psql_postgresql_install
- psql_db_data is defined
- not postgresql_client_only
- name: Service management
ansible.builtin.import_tasks: postgresql-service-status.yml
when:
- psql_postgresql_install
- not postgresql_client_only
- name: Manage the databases
ansible.builtin.import_tasks: manage_pg_db.yml
when:
- psql_postgresql_install
- psql_db_data is defined
- not postgresql_client_only
- name: Streaming replication setup
ansible.builtin.import_tasks: postgresql-streaming-replication.yml
when:
- postgresql_streaming_replication
- not postgresql_client_only
- name: Local backups
ansible.builtin.import_tasks: postgresql-backup.yml
when:
- psql_postgresql_install
- not postgresql_client_only
- name: Letsencrypt hook
ansible.builtin.import_tasks: postgresql-letsencrypt-acmetool.yml
when:
- postgresql_letsencrypt_managed
- not postgresql_client_only