Ensures v4/v6 iptables filters are loaded 15/52215/1
authorTim Rozet <trozet@redhat.com>
Thu, 15 Feb 2018 20:56:18 +0000 (15:56 -0500)
committerTim Rozet <trozet@redhat.com>
Thu, 15 Feb 2018 20:58:29 +0000 (15:58 -0500)
We configure host iptables to open different ports for VBMC.  This may
fail if the iptables filters are not loaded.

JIRA: APEX-521

Change-Id: Ia33032c29aba3555551e39b4f819087aeafe05d9
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/ansible/playbooks/deploy_dependencies.yml

index 545ee33..da31a25 100644 (file)
       when:
         - ansible_architecture == "x86_64"
         - "'Y' not in nested_result.stdout"
+    - modprobe:
+        name: ip6_tables
+        state: present
+    - modprobe:
+        name: ip_tables
+        state: present
     - name: Generate SSH key for root if missing
       shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
     - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists