mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Install Kubernetes 1.11 and go back to Ubuntu Xenial until Bionic is officially supported
This commit is contained in:
parent
5acc7652a9
commit
bf83e675f2
26 changed files with 765 additions and 7 deletions
30
roles/kubernetes/tasks/modules.yml
Normal file
30
roles/kubernetes/tasks/modules.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
- name: Get the kernel revision
|
||||
shell: "uname -r"
|
||||
register: kernel
|
||||
changed_when: False
|
||||
check_mode: False
|
||||
|
||||
# allow failure as the package may not exist
|
||||
- name: Try install linux-image
|
||||
apt:
|
||||
state: present
|
||||
name: "{{ 'linux-image-' + kernel.stdout }}"
|
||||
register: result
|
||||
failed_when: False
|
||||
|
||||
- name: modprobe
|
||||
modprobe:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- ip_vs
|
||||
- nf_conntrack_ipv4
|
||||
|
||||
- name: /etc/modules
|
||||
lineinfile:
|
||||
path: /etc/modules
|
||||
line: "{{ item }}"
|
||||
with_items:
|
||||
- ip_vs
|
||||
- nf_conntrack_ipv4
|
||||
Loading…
Add table
Add a link
Reference in a new issue