From cb22333aaefda7766e5688f69c4d0ee779895bf2 Mon Sep 17 00:00:00 2001 From: Mark O'Brien Date: Tue, 4 Aug 2020 17:20:52 +0100 Subject: [PATCH] [proxies] ensure all directories exists --- playbooks/include/proxies-fedorahosted.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/playbooks/include/proxies-fedorahosted.yml b/playbooks/include/proxies-fedorahosted.yml index 83cd90ea75..1e3ed1b494 100644 --- a/playbooks/include/proxies-fedorahosted.yml +++ b/playbooks/include/proxies-fedorahosted.yml @@ -12,11 +12,14 @@ - import_tasks: "{{ handlers_path }}/restart_services.yml" tasks: - - name: Ensure directory exists + - name: Ensure directories exists file: - path: /etc/httpd/conf.d/fedorahosted.org + path: "{{ item }}" state: directory mode: '0755' + loop: + - '/etc/httpd/conf.d/fedorahosted.org' + - '/etc/httpd/conf.d/git.fedorahosted.org' - name: install special fedorahosted-redirects.conf with fedorahosted redirects copy: src={{ files }}/httpd/fedorahosted-redirects.conf dest=/etc/httpd/conf.d/fedorahosted.org/fedorahosted-redirects.conf