zuul-jobs/roles/configure-mirrors/tasks/mirror/Ubuntu.yaml
David Moreau-Simard d45cfa287d Streamline configure-mirrors and Ubuntu repository setup
- Improve the structure to support multiple distributions
- Use one task to set up the different repository files
- Use handler to update the apt cache

Change-Id: I90933164cbca9d230cebeb3e2e1263c7806db840
2017-09-07 15:37:31 -04:00

14 lines
279 B
YAML

- name: Install Ubuntu repository files
become: yes
template:
dest: "/{{ item }}"
group: root
mode: 0644
owner: root
src: "{{ item }}.j2"
with_items:
- etc/apt/sources.list
- etc/apt/apt.conf.d/99unauthenticated
notify:
- Update apt cache