infra/roles/mirrors/tasks/mirrors.yml

28 lines
514 B
YAML

---
- name: install certs
copy:
src: "/usr/local/etc/letsencrypt/live/{{ item }}"
dest: "/usr/local/etc/certs/"
owner: root
group: root
mode: 0755
tags:
- letsencrypt-certs
notify: reload nginx
vars:
prediff_cmd: echo
with_items:
- "{{ mirrors_url }}"
- name: template nginx-config
template:
src: 01-mirrors.conf.j2
dest: /etc/nginx/sites-enabled/01-mirrors.conf
owner: root
group: root
mode: 0775
tags:
- nginx-config
notify: reload nginx