--- - name: install packages become: true ansible.builtin.package: name: - sanoid state: present - name: Generate Sanoid Configuration become: true ansible.builtin.template: src: sanoid.conf.j2 dest: /etc/sanoid/sanoid.conf owner: root group: root mode: 0644 - name: Generate Sanoid Configuration become: true community.general.ini_file: path: "/ets/systemd/system/{{ item }}" section: Unit state: present exclusive: no no_extra_spaces: no option: OnFailure value: sanoid_mail.service loop: - sanoid.service - sanoid-prune.service