--- - name: Set timezone community.general.timezone: name: "{{ timezone }}" when: timezone is defined - name: Enable IPv4 forwarding ansible.posix.sysctl: name: net.ipv4.ip_forward value: "1" state: present reload: true - name: Add kmsg service ansible.builtin.copy: content: > #!/sbin/openrc-run start() { if [ ! -e /dev/kmsg ]; then ln -s /dev/console /dev/kmsg fi mount --make-rshared / } dest: /etc/init.d/kmsg mode: "0755" - name: Enable and start kmsg service ansible.builtin.service: name: kmsg enabled: true state: started - name: Configure containerd socket path for rke2 crictl ansible.builtin.lineinfile: regexp: "^ address = \"/run/containerd/containerd.sock\"$" line: " address = \"/run/k3s/containerd/containerd.sock\"" dest: /etc/containerd/config.toml mode: "0600"