Merge "Cleanup the kata setup role"

This commit is contained in:
Zuul 2018-07-04 17:52:38 +00:00 committed by Gerrit Code Review
commit 4ce9d6d1c3
2 changed files with 21 additions and 0 deletions

View File

@ -6,6 +6,18 @@
- "setup/{{ ansible_os_family }}.yaml"
- "setup/default.yaml"
- name: Allow k8s cluster range to talk to k8s api
iptables:
state: present
action: insert
chain: INPUT
ip_version: ipv4
protocol: tcp
source: "10.244.0.0/16"
destination_port: 6443
jump: ACCEPT
become: yes
- name: Run kata setup.sh
args:
executable: /bin/bash

View File

@ -45,3 +45,12 @@
name: docker-ce
state: present
become: yes
# TODO why isn't this necessary on Ubuntu?
- name: Ensure vhost and vhost_net modules are present as kata checks for these
args:
executable: /bin/bash
shell: |
set -x
modprobe vhost_net
become: yes