fix a conditional.

This commit is contained in:
Andrea Dell'Amico 2021-02-16 18:12:21 +01:00
parent 8d6db35b06
commit 9c06db234e
1 changed files with 2 additions and 2 deletions

View File

@ -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' ]