Loading inventory-sample.yml +3 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,6 @@ k3s_cluster: # k3s_server_location: /var/lib/rancher/k3s # systemd_dir: /etc/systemd/system # extra_service_envs: [ 'ENV_VAR1=VALUE1', 'ENV_VAR2=VALUE2' ] # List of locally available manifests to apply to the cluster, useful for PVCs or Traefik modifications. # Manifests should be either full paths or relative to the playbook directory. # extra_manifests: [ '/path/to/manifest1.yaml', '/path/to/manifest2.yaml' ] roles/prereq/tasks/main.yml +15 −0 Original line number Diff line number Diff line Loading @@ -172,3 +172,18 @@ src: "{{ k3s_server_location }}" force: true state: link - name: Setup extra manifests when: extra_manifests is defined block: - name: Make manifests directory ansible.builtin.file: path: "/var/lib/rancher/k3s/server/manifests" mode: 0700 state: directory - name: Copy manifests ansible.builtin.copy: src: "{{ item }}" dest: "/var/lib/rancher/k3s/server/manifests" mode: 0600 loop: "{{ extra_manifests }}" Loading
inventory-sample.yml +3 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,6 @@ k3s_cluster: # k3s_server_location: /var/lib/rancher/k3s # systemd_dir: /etc/systemd/system # extra_service_envs: [ 'ENV_VAR1=VALUE1', 'ENV_VAR2=VALUE2' ] # List of locally available manifests to apply to the cluster, useful for PVCs or Traefik modifications. # Manifests should be either full paths or relative to the playbook directory. # extra_manifests: [ '/path/to/manifest1.yaml', '/path/to/manifest2.yaml' ]
roles/prereq/tasks/main.yml +15 −0 Original line number Diff line number Diff line Loading @@ -172,3 +172,18 @@ src: "{{ k3s_server_location }}" force: true state: link - name: Setup extra manifests when: extra_manifests is defined block: - name: Make manifests directory ansible.builtin.file: path: "/var/lib/rancher/k3s/server/manifests" mode: 0700 state: directory - name: Copy manifests ansible.builtin.copy: src: "{{ item }}" dest: "/var/lib/rancher/k3s/server/manifests" mode: 0600 loop: "{{ extra_manifests }}"