19 lines
398 B
YAML
19 lines
398 B
YAML
---
|
|
- name: Create rancher folder
|
|
file:
|
|
state: directory
|
|
path: /etc/rancher/k3s
|
|
owner: root
|
|
group: root
|
|
mode: 755
|
|
|
|
- name: Copy k3s config file
|
|
template:
|
|
src: master.config.yaml.j2
|
|
dest: /etc/rancher/k3s/config.yaml
|
|
mode: 600
|
|
vars:
|
|
etcd_snapshot_dir: "/nfs/nas1/backups/{{ short_hostname }}"
|
|
|
|
- name: Install k3s master
|
|
command: bash /tmp/k3s.install.sh
|