From 994b025a706ae32fc3a825f3a447f8fa5d2f2679 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Tue, 17 Nov 2020 08:08:53 +0100 Subject: [PATCH] mirrormanager: fix script installation update-mirrorlist-server was added as a template but a simple copy would have been enough. This changes one of the existing script copy definitions to work with multiple items and adds update-mirrorlist-server to that item list. Signed-off-by: Adrian Reber --- roles/mirrormanager/backend/tasks/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/mirrormanager/backend/tasks/main.yml b/roles/mirrormanager/backend/tasks/main.yml index eff2aa4a7f..c4acaddf48 100644 --- a/roles/mirrormanager/backend/tasks/main.yml +++ b/roles/mirrormanager/backend/tasks/main.yml @@ -42,20 +42,24 @@ - config when: env != 'staging' and datacenter != 'iad2' -- name: install the umdl-required script - copy: src=umdl-required dest=/usr/local/bin/umdl-required mode=0755 +- name: install backend helper scripts + copy: src={{ item }} dest=/usr/local/bin/{{ item }} mode=0755 + with_items: + - umdl-required + - update-mirrorlist-server + tags: + - mirrormanager/backend - name: install the umdl-required logrotate file copy: src=mm2_umdl-required.logrotate dest=/etc/logrotate.d/mm2_umdl-required mode=644 -- name: install backend helper scripts +- name: install backend helper scripts from template template: src={{ item }} dest=/usr/local/bin/{{ item }} mode=0755 with_items: - sync_cache_to_mirrorlists.sh - handle_propagation.sh - create_maps.sh - create_statistics.sh - - update-mirrorlist-server tags: - mirrormanager/backend