diff --git a/handlers/main.yml b/handlers/main.yml index e4c5d800..3b267ddd 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -27,6 +27,7 @@ listen: - "Restart neutron services" - "venv changed" + - "systemd service changed" # NOTE(cloudnull): # When installing or upgrading it is possible that an old metadata proxy process will not @@ -130,6 +131,7 @@ listen: - "Restart neutron services" - "venv changed" + - "systemd service changed" - name: start ovn service service: diff --git a/vars/main.yml b/vars/main.yml index bc18f5d7..0821081e 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -340,7 +340,13 @@ filtered_neutron_services: |- (('service_en' not in value) or ('service_en' in value and value['service_en'])) and not ('wsgi_app' in value and value['wsgi_app']) %} - {% set _ = value.update({'service_key': key}) %} + {% set _ = value.update( + { + 'service_key': key, + 'enabled': value['enabled'] | default(True), + 'state': value['state'] | default('started'), + } + ) %} {% set _ = services.append(value) %} {% endif %} {% endfor %}