geerlingguy.ansible-role-ku.../tests/test.yml

26 lines
684 B
YAML
Raw Permalink Normal View History

2018-05-09 16:19:11 +02:00
---
- hosts: all
vars:
# Allow swap in test environments (hard to control in some Docker envs).
kubernetes_kubelet_extra_args: "--fail-swap-on=false"
2018-05-09 16:19:11 +02:00
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Ensure test dependencies are installed.
package: name=iproute state=present
- action: setup
- name: Use cgroupfs cgroup driver instead of systemd (Red Hat).
set_fact:
kubernetes_kubelet_extra_args: "--fail-swap-on=false --cgroup-driver=cgroupfs"
when: ansible_os_family == 'RedHat'
2018-05-09 16:19:11 +02:00
roles:
- geerlingguy.docker
- role_under_test