First Commit

This commit is contained in:
Michael Marquez
2021-04-19 01:22:42 -04:00
commit 8a5d60cce4
44 changed files with 808 additions and 0 deletions

24
roles/k3s/tasks/main.yml Normal file
View File

@@ -0,0 +1,24 @@
- name: Download K3s Installer
get_url:
url: https://get.k3s.io/
dest: /tmp/install_k3s.sh
mode: '0444'
- name: Create Rancher K3s Directory
file:
path: /etc/rancher/k3s
state: directory
- name: Copy config.yaml
template:
src: config.yaml.j2
dest: /etc/rancher/k3s/config.yaml
- name: Install K3s
command: sh /tmp/install_k3s.sh
- name: Copying Kubernetes Config from Remote Host
fetch:
src: /etc/rancher/k3s/k3s.yaml
dest: k3s.yaml
flat: yes