ovs.yml 623 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - include: packageManagerInstall.yml
  3. when: source_type == "packageManager"
  4. tags:
  5. - binary-update
  6. - name: OVS | Configure selinux for ovs
  7. command: "semanage permissive -a openvswitch_t"
  8. - name: OVS | Enable ovs
  9. service:
  10. name: openvswitch
  11. enabled: yes
  12. - name: OVS | Start ovs
  13. service:
  14. name: openvswitch
  15. state: started
  16. register: ovs_started
  17. - name: OVS | Configure ovs
  18. command: "ovs-vsctl set-manager {{ item }}"
  19. with_items:
  20. - "tcp:127.0.0.1:6640"
  21. - "ptcp:6640"
  22. - name: OVS | Configure ovsdb-server
  23. command: "ovs-appctl -t ovsdb-server ovsdb-server/add-remote ptcp:6640"