fix handlers

This commit is contained in:
Robert Kaussow 2018-08-04 23:46:05 +02:00
parent 0926ea78bc
commit f08492e24f
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@
state: restarted
enabled: yes
listen: __ucs_apache_restart
when: ucs_custom_tls_apache2_enabled
become: True
- name: Restart dovecot service
@ -13,6 +14,7 @@
state: restarted
enabled: yes
listen: __ucs_dovecot_restart
when: ucs_custom_tls_dovecot_enabled
become: True
- name: Restart postfix service
@ -21,4 +23,5 @@
state: restarted
enabled: yes
listen: __ucs_postfix_restart
when: ucs_custom_tls_postfix_enabled
become: True

View File

@ -19,7 +19,10 @@
- { src: "{{ ucs_tls_key_path }}", dest: "{{ ucs_tls_key_dir }}/ucs.pem", mode: '0750' }
loop_control:
label: "{{ item.dest }}"
notify: __ucs_apache_restart
notify:
- __ucs_apache_restart
- __ucs_dov_restart
- __ucs_postfix_restart
- name: Set apache2 ucr vars
ucr: