diff --git a/ansible/browbeat/roles/neutron-ovsdb/handlers/main.yml b/ansible/browbeat/roles/neutron-ovsdb/handlers/main.yml new file mode 100644 index 000000000..d6c79e0d0 --- /dev/null +++ b/ansible/browbeat/roles/neutron-ovsdb/handlers/main.yml @@ -0,0 +1,9 @@ +--- +# +# Neutron handlers for browbeat adjustment +# + +- name: restart neutron services + service: name={{ item }} state=restarted + with_items: + - neutron-openvswitch-agent diff --git a/ansible/browbeat/roles/neutron-ovsdb/tasks/main.yml b/ansible/browbeat/roles/neutron-ovsdb/tasks/main.yml new file mode 100644 index 000000000..c33d5269e --- /dev/null +++ b/ansible/browbeat/roles/neutron-ovsdb/tasks/main.yml @@ -0,0 +1,15 @@ +- name: Configure the ovsdb driver + ini_file: + dest: "{{ item.file }}" + mode: 0640 + section: "{{ item.section }}" + option: "{{ item.option }}" + value: "{{ item.value }}" + backup: yes + with_items: + - { file: /etc/neutron/plugins/ml2/openvswitch_agent.ini, section: ovs, option: ovsdb_interface, value: "{{ driver }}" } + notify: + - unmanage neutron services + - restart neutron services + - manage neutron services + - cleanup neutron services