- name: install backports apt list template: src: backports.list.j2 dest: /etc/apt/sources.list.d/backports.list # do this from a template to fully remove any other lines in the file.