--- - name: Adjust packages config file template: src: etc/dnf/dnf.conf.j2 dest: /etc/dnf/dnf.conf owner: root group: root mode: 0644 become: True become_user: root