Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
/ k3s-reset Public archive

Ansible role to reset install in k3s cluster

Notifications You must be signed in to change notification settings

lucaslehnen/k3s-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reset k3s cluster

DEPRECATED: migrate to https://github.com/lucaslehnen/tchecode.k3s

This role reset changes caused by:

Example

In your main.yml:

- hosts: servers
  roles:
      - k3s-reset
  vars:
    ansible_user: ubuntu

~ubuntu/.kube will be removed.

In your requirements.yml:

- name: k3s-reset
  src: https://github.com/lucaslehnen/k3s-reset
  version: v1.0.0

Define target hosts in your inventory file hosts:

[servers]
192.168.99.11
192.168.99.12
192.168.99.13

Install requirements:

ansible-galaxy install -r requirements.yml

Call the playbook:

ansible-playbook -i hosts main.yml

License

MIT

Author

https://github.com/lucaslehnen