diff --git a/mcapi_vexxhost/roles/proxy/handlers/main.yml b/mcapi_vexxhost/roles/proxy/handlers/main.yml new file mode 100644 index 00000000..0a253d79 --- /dev/null +++ b/mcapi_vexxhost/roles/proxy/handlers/main.yml @@ -0,0 +1,24 @@ +--- +# Copyright 2024, BBC R&D +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: Restart magnum_cluster_api_proxy service + systemd: + name: "magnum-cluster-api-proxy" + enabled: yes + state: "restarted" + daemon_reload: yes + listen: + - "venv changed" + - "systemd service changed" diff --git a/mcapi_vexxhost/roles/proxy/tasks/main.yml b/mcapi_vexxhost/roles/proxy/tasks/main.yml index 6d06af5a..ba390bbf 100644 --- a/mcapi_vexxhost/roles/proxy/tasks/main.yml +++ b/mcapi_vexxhost/roles/proxy/tasks/main.yml @@ -86,7 +86,6 @@ vars: systemd_user_name: "{{ magnum_cluster_api_proxy_system_user_name }}" systemd_group_name: "{{ magnum_cluster_api_proxy_system_group_name }}" - systemd_service_restart_changed: true systemd_tempd_prefix: openstack systemd_slice_name: magnum-cluster-api-proxy systemd_lock_path: /var/lock/magnum-cluster-api-proxy