Open port 8101 on controllers for karaf
[apex.git] / lib / ansible / playbooks / post_deploy_overcloud.yml
index 212d2cf..372aea4 100644 (file)
       when:
         - sdn == 'opendaylight'
         - "'controller' in ansible_hostname"
+    - name: Open port 8101 (karaf shell) for ODL
+      iptables:
+        chain: INPUT
+        action: insert
+        protocol: tcp
+        destination_port: 8101
+        jump: ACCEPT
+        rule_num: 1
+      become: yes
+      when:
+        - sdn == 'opendaylight'
+        - "'controller' in ansible_hostname"
+    - name: save iptables
+      command: service iptables save
+      become: yes