From 6517668264eca304ca1679e7fb574a8b11f5d05a Mon Sep 17 00:00:00 2001 From: Matus Cuper Date: Tue, 13 Jan 2026 14:42:09 +0100 Subject: [PATCH 1/2] Args warn is deprecated for newer Ansible --- tasks/configure.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index c37ddfb6..a40cf1cf 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -174,8 +174,6 @@ {% if (postgresql_wal_segsize | default('')) | length > 0 and postgresql_version is version('11', '>=') -%} --wal-segsize={{ postgresql_wal_segsize | quote }} {%- endif -%} - args: - warn: false when: - ansible_facts['os_family'] == 'RedHat' - (postgresql_cluster_reset | default(false)) | bool From bf1211c8605b2e5aa901fdf75b8c2df8240877c7 Mon Sep 17 00:00:00 2001 From: Matus Cuper Date: Tue, 13 Jan 2026 14:50:27 +0100 Subject: [PATCH 2/2] Remove also args.warn for other platforms --- tasks/configure.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index a40cf1cf..e34b6a9a 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -87,8 +87,6 @@ become_user: "{{ postgresql_service_user }}" ansible.builtin.shell: >- pg_dropcluster {{ postgresql_version }} {{ postgresql_cluster_name }} - args: - warn: false when: - ansible_facts['os_family'] == 'Debian' - (postgresql_cluster_reset | default(false)) | bool @@ -116,8 +114,6 @@ {% if (postgresql_wal_directory | default('')) | length > 0 and postgresql_version is version('10', '>=') -%} --waldir={{ postgresql_wal_directory | quote }} {%- endif -%} - args: - warn: false when: - ansible_facts['os_family'] == 'Debian' - (postgresql_cluster_reset | default(false)) | bool @@ -126,8 +122,6 @@ - name: PostgreSQL | Update systemd | Debian become: true ansible.builtin.command: systemctl daemon-reload - args: - warn: false when: - ansible_facts['os_family'] == 'Debian' - (postgresql_cluster_reset | default(false)) | bool