W3cubDocs

/Ansible

openvswitch_db - Configure open vswitch database.

New in version 2.0.

Synopsis

  • Set column values in record in database table.

Requirements (on host that executes module)

  • ovs-vsctl >= 2.3.3

Options

parameter required default choices comments
column
yes
Identifies the column in the record.
key
yes
Identifies the key in the record column
record
yes
Identifies the recoard in the table.
state
(added in 2.4)
no present
  • present
  • absent
Configures the state of the key. When set to present, the key and value pair will be set on the record and when set to absent the key will not be set.
table
yes
Identifies the table in the database.
timeout
no 5
How long to wait for ovs-vswitchd to respond
value
yes
Expected value for the table, record, column and key.

Examples

# Increase the maximum idle time to 50 seconds before pruning unused kernel
# rules.
- openvswitch_db:
    table: open_vswitch
    record: .
    col: other_config
    key: max-idle
    value: 50000

# Disable in band copy
- openvswitch_db:
    table: Bridge
    record: br-int
    col: other_config
    key: disable-in-band
    value: true

# Remove in band key
- openvswitch_db:
    state: present
    table: Bridge
    record: br-int
    col: other_config
    key: disable-in-band

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance Info

For more information about Red Hat’s this support of this module, please refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.

© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/openvswitch_db_module.html