From cd8e1437483b64b2ebd128f2d294b10b443c4b95 Mon Sep 17 00:00:00 2001 From: John Hensley Date: Tue, 19 Jan 2021 16:57:42 -0500 Subject: [PATCH] Restart Apache when restarting Tor during installation If the configuration of v2 and v3 services is modified, Apache needs to be restarted for the app config to reflect the changes, so that migration warnings are accurate. --- .../tor-hidden-services/handlers/restart-tor-carefully.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_files/ansible-base/roles/tor-hidden-services/handlers/restart-tor-carefully.yml b/install_files/ansible-base/roles/tor-hidden-services/handlers/restart-tor-carefully.yml index 7e0c901f5d4..d1c9ea57c54 100644 --- a/install_files/ansible-base/roles/tor-hidden-services/handlers/restart-tor-carefully.yml +++ b/install_files/ansible-base/roles/tor-hidden-services/handlers/restart-tor-carefully.yml @@ -29,6 +29,12 @@ state: started become: no +- name: Restart Apache to pick up Tor configuration changes + service: + name: apache2 + state: restarted + when: "'securedrop_application_server' in group_names" + - name: Refresh ansible local facts setup: filter: ansible_local