Skip to content

Instantly share code, notes, and snippets.

@praseodym
Created July 28, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praseodym/1513970457f954128151105211eecff5 to your computer and use it in GitHub Desktop.
Save praseodym/1513970457f954128151105211eecff5 to your computer and use it in GitHub Desktop.
diff --git a/roles/bootstrap-os/tasks/bootstrap-debian.yml b/roles/bootstrap-os/tasks/bootstrap-debian.yml
index aec6d78b..e16b9c6e 100644
--- a/roles/bootstrap-os/tasks/bootstrap-debian.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-debian.yml
@@ -59,9 +59,17 @@
when:
- need_bootstrap.rc != 0
-# Workaround for https://github.com/ansible/ansible/issues/25543
-- name: Install dbus for the hostname module
- package:
- name: dbus
+- name: Install prerequisite packages
+ apt:
state: present
+ name:
+ - dbus # Workaround for https://github.com/ansible/ansible/issues/25543
+ - ethtool # needed for kubeadm
+ become: true
+
+- name: Start systemd-hostnamed.service for the hostname module
+ systemd:
+ name: systemd-hostnamed.service
+ enabled: true
+ state: started
become: true
diff --git a/roles/kubernetes/master/tasks/kubeadm-setup.yml b/roles/kubernetes/master/tasks/kubeadm-setup.yml
index a932fa4c..9f30d535 100644
--- a/roles/kubernetes/master/tasks/kubeadm-setup.yml
+++ b/roles/kubernetes/master/tasks/kubeadm-setup.yml
@@ -105,7 +105,7 @@
- name: kubeadm | Initialize first master
command: >-
- timeout -k 300s 300s
+ timeout -k 600s 600s
{{ bin_dir }}/kubeadm init
--config={{ kube_config_dir }}/kubeadm-config.yaml
--ignore-preflight-errors=all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment