From 9c06db234ee06889822df6dbb452606c27d6c80e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 16 Feb 2021 18:12:21 +0100 Subject: [PATCH] fix a conditional. --- tasks/postgresql-config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/postgresql-config.yml b/tasks/postgresql-config.yml index 6787b5d..115f1ab 100644 --- a/tasks/postgresql-config.yml +++ b/tasks/postgresql-config.yml @@ -109,7 +109,7 @@ - name: Restart the postgresql server after changing parameters that need a restart service: name=postgresql state=restarted when: - - restart_postgresql is changed + - restart_postgresql is defined and restart_postgresql is changed ignore_errors: True tags: [ 'postgresql', 'postgres', 'pg_hba', 'pg_conf' ] @@ -246,7 +246,7 @@ - name: Restart the postgresql server after changing parameters that need a restart service: name='postgresql-{{ psql_version }}' state=restarted when: - - restart_postgresql is changed + - restart_postgresql is defined and restart_postgresql is changed ignore_errors: True tags: [ 'postgresql', 'postgres', 'pg_hba', 'pg_conf' ]