- name: modify kernel attributes hosts: wireguard become: true tasks: - name: create wireguard specific entry in sysctl.d ansible.builtin.copy: src: ../configs/sysctl dest: /etc/sysctl.d/99-wireguard.conf owner: root group: root mode: 0644