diff --git a/.gitignore b/.gitignore index 47ad28db..3a6bd340 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Icon .vagrant test *.retry +ANXS-postgresql.code-workspace diff --git a/defaults/main.yml b/defaults/main.yml index 011ee7ad..cc8bece9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -111,6 +111,7 @@ postgresql_ident_file: "{{ postgresql_conf_directory }}/pg_ident.conf" postgresql_varlib_directory_name: "postgresql" postgresql_data_directory: "/var/lib/{{ postgresql_varlib_directory_name }}/{{ postgresql_version }}/{{ postgresql_cluster_name }}" postgresql_wal_directory: "" +postgresql_wal_segsize: "" postgresql_pid_directory: "/var/run/postgresql" # If external_pid_file is not explicitly set, on extra PID file is written postgresql_external_pid_file: "{{ postgresql_pid_directory }}/{{ postgresql_version }}-{{ postgresql_cluster_name }}.pid" diff --git a/tasks/configure.yml b/tasks/configure.yml index 390dff7a..c6e9be67 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -116,6 +116,7 @@ {% if postgresql_pwfile != "" %}--pwfile={{ postgresql_pwfile }} {% endif %} {% if postgresql_wal_directory != "" and postgresql_version is version_compare('10', '<') %}--xlogdir={{ postgresql_wal_directory }} {% endif %} {% if postgresql_wal_directory != "" and postgresql_version is version_compare('10', '>=') %}--waldir={{ postgresql_wal_directory }} {% endif %} + {% if postgresql_wal_segsize != "" and postgresql_version is version_compare('11', '>=') %}--wal-segsize={{ postgresql_wal_segsize }} {% endif %} become: yes become_user: "{{ postgresql_service_user }}" when: ansible_os_family == "RedHat" and