diff --git a/group_vars/mirrors/mirrorsync.yml b/group_vars/mirrors/mirrorsync.yml index 21d18e2ea3925fabe88502657e5913c9fe51b46a..90c673923cd5eab6545ac4fbb12cbc374c98c4d1 100644 --- a/group_vars/mirrors/mirrorsync.yml +++ b/group_vars/mirrors/mirrorsync.yml @@ -1,7 +1,7 @@ mirrorsync_mirrors: archive: hosts: "{{ groups['archive_mirrors'] }}" - source: rsync://rsync.archlinux.org/archive + source: rsync://archive.archlinux.org/archive target: /srv/archive last_update_url: https://archive.archlinux.org/repos/last/lastupdate last_update_dst: lastupdate diff --git a/roles/repo_archive_split_temp/tasks/main.yml b/roles/repo_archive_split_temp/tasks/main.yml index 001ee86d618d72c429095f641780a6798f010741..d629483ea26913633275622ad1cbc84d98dd227a 100644 --- a/roles/repo_archive_split_temp/tasks/main.yml +++ b/roles/repo_archive_split_temp/tasks/main.yml @@ -17,6 +17,14 @@ tags: - nginx +- name: Put rsyncd.conf into tmpfiles + copy: src=rsyncd-tmpfiles.d dest=/etc/tmpfiles.d/rsyncd.conf owner=root group=root mode=0644 + register: rsyncdtmpfiles + +- name: Use tmpfiles.d/rsyncd.conf + command: systemd-tmpfiles --create creates=/run/rsyncd + when: rsyncdtmpfiles.changed + - name: Create rsyncd-conf-genscripts file: path=/etc/rsyncd-conf-genscripts state=directory owner=root group=root mode=0700