Files
k3s-ansible/roles/k3s_custom_registries/tasks/main.yml
Richard Holmboe 48f5096a1a Change to FQCN with ansible-lint fixer
Since ansible-base 2.10 (later ansible-core), FQCN is the new way to go.

Updated .ansible-lint with a production profile and removed fqcn in skip_list.
Updated .yamllint with rules needed.

Ran ansible-lint --fix=all, then manually applied some minor changes.
2024-08-02 09:18:06 +02:00

17 lines
389 B
YAML

---
- name: Create directory /etc/rancher/k3s
ansible.builtin.file:
path: /etc/{{ item }}
state: directory
mode: "0755"
loop:
- rancher
- rancher/k3s
- name: Insert registries into /etc/rancher/k3s/registries.yaml
ansible.builtin.blockinfile:
path: /etc/rancher/k3s/registries.yaml
block: "{{ custom_registries_yaml }}"
mode: "0600"
create: true