Execution
Date 14 Apr 2025 14:48:38 +0100
Duration 00:00:01.24
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
2 Hosts
2 Tasks
3 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10003.yaml

---
- name: Playbook to add rules and verify them
  hosts: all
  gather_facts: false
  tasks:
    - name: Run the command
      ansible.builtin.shell: |
        set -o pipefail
        #ovs-ofctl add-flow br-int "table=3 cookie=0xFFFFFFFFFFFFFFFF priority=39900 action=normal"
        #ovs-ofctl add-flow br-int "table=5 cookie=0xFFFFFFFFFFFFFFFF priority=39900 action=normal"
        ovs-ofctl dump-flows br-int | grep cookie=0xffffffffffffffff | egrep "table=3|table=5"
      args:
        executable: /bin/bash
      register: result
      changed_when: result.rc != 0
    - name: Debug the result
      when: result.rc != 0
      ansible.builtin.debug:
        msg: "OVS Flows Verification Failed. Flows not found."