Added Vagrantfile for build environment with Vagrant (#14)

* Added .vagrant to ignore

* Added Vagrantfile

* Added section for Vagrant

* made retry_count customizeable (default 20)
This commit is contained in:
Philip Haberkern
2022-04-05 04:51:21 +02:00
committed by GitHub
parent 1310a1509d
commit 34624bc3f2
4 changed files with 89 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
---
- name: Clean previous runs of k3s-init
systemd:
name: k3s-init
@@ -83,7 +84,7 @@
cmd: k3s kubectl get nodes -l "node-role.kubernetes.io/master=true" -o=jsonpath="{.items[*].metadata.name}"
register: nodes
until: nodes.rc == 0 and (nodes.stdout.split() | length) == (groups['master'] | length)
retries: 20
retries: "{{ retry_count | default(20) }}"
delay: 10
changed_when: false
always: