--- - name: Manage K3s HTTP Proxy Configuration when: proxy_env is defined block: - name: Create k3s.service.d directory ansible.builtin.file: path: '{{ systemd_dir }}/k3s.service.d' owner: root group: root state: directory mode: '0755' - name: Deploy the K3s http_proxy configuration file ansible.builtin.template: src: "http_proxy.conf.j2" dest: "{{ systemd_dir }}/k3s.service.d/http_proxy.conf" owner: root group: root mode: '0755'