# repositories ~~ roles/repositories/tasks/main.yml # ensure correct repositories are used --- - name: ensure mirrors for openbsd systems lineinfile: path: /etc/installurl regexp: "^{{ item }}" line: "{{ item }}" loop: "{{ repositories_openbsd }}" when: ansible_distribution == "OpenBSD" - name: ensure mirrors for alpine systems lineinfile: path: /etc/apk/repositories regexp: "^{{ item }}" line: "{{ item }}" loop: "{{ repositories_alpine }}" when: ansible_distribution == "Alpine"