forked from tim/k3s-ansible
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user