mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
27 lines
720 B
YAML
27 lines
720 B
YAML
---
|
|
- hosts: all
|
|
|
|
vars:
|
|
# Allow swap in test environments (hard to control in some Docker envs).
|
|
kubernetes_kubelet_extra_args: "--fail-swap-on=false"
|
|
docker_install_compose: False
|
|
|
|
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'
|
|
|
|
roles:
|
|
- geerlingguy.docker
|
|
- role_under_test
|