fix service handling
This commit is contained in:
parent
9f96b7845f
commit
93b54f4491
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Restart apache service
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
enabled: yes
|
||||
listen: __ucs_apache_restart
|
||||
become: True
|
|
@ -19,6 +19,7 @@
|
|||
- { src: "{{ ucs_tls_cert_path }}", dest: "{{ ucs_tls_key_dir }}/ucs.pem", mode: '0750' }
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
notify: __ucr_apache_restart
|
||||
|
||||
- name: Set necessary ucr vars
|
||||
ucr:
|
||||
|
@ -27,5 +28,6 @@
|
|||
with_items:
|
||||
- { path: apache2/ssl/certificate, value: "{{ ucs_tls_certs_dir }}/ucs.pem" }
|
||||
- { path: apache2/ssl/key, value: "{{ ucs_tls_key_dir }}/ucs.pem" }
|
||||
notify: __ucr_apache_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
|
Loading…
Reference in New Issue