fix a conditional.
This commit is contained in:
parent
8d6db35b06
commit
9c06db234e
|
@ -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' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue