From e78f97bfbb785cc9ec0c5e36254a162993563ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= Date: Mon, 20 Aug 2018 15:02:13 +0200 Subject: [PATCH] Move copr.conf to templates, it has jinja2 macros --- roles/copr/frontend/tasks/main.yml | 6 ++++++ roles/copr/frontend/{files => templates}/httpd/coprs.conf | 0 2 files changed, 6 insertions(+) rename roles/copr/frontend/{files => templates}/httpd/coprs.conf (100%) diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index bdb75fcf41..558f07a2b8 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -48,6 +48,12 @@ copy: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/{{ item }}" with_items: - "welcome.conf" + tags: + - config + +- name: copy apache files to conf.d (templates) + template: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/{{ item }}" + with_items: - "coprs.conf" tags: - config diff --git a/roles/copr/frontend/files/httpd/coprs.conf b/roles/copr/frontend/templates/httpd/coprs.conf similarity index 100% rename from roles/copr/frontend/files/httpd/coprs.conf rename to roles/copr/frontend/templates/httpd/coprs.conf