From e2e0e2ed2592d90e94b4b3fb691c831b9b11d4c2 Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Mon, 15 Jun 2015 13:30:04 +0000 Subject: [PATCH] only deal with artifacts dirs/conf for taskotron hosts --- roles/taskotron/buildmaster/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/taskotron/buildmaster/tasks/main.yml b/roles/taskotron/buildmaster/tasks/main.yml index b9bd3acaaf..0f1fd7ff4f 100644 --- a/roles/taskotron/buildmaster/tasks/main.yml +++ b/roles/taskotron/buildmaster/tasks/main.yml @@ -25,11 +25,13 @@ - name: copy artifacts httpd config template: src=artifacts.conf.j2 dest=/etc/httpd/conf.d/artifacts.conf owner=root group=root + when: deployment_type == 'taskotron-prod' or deployment_type == 'taskotron-stg' or deployment_type == 'taskotron-dev' or deployment_type == 'taskotron-local' notify: - restart httpd - name: create artifacts directory file: path={{ item }} state=directory owner=buildmaster group=buildmaster mode=0775 setype=httpd_sys_content_t + when: deployment_type == 'taskotron-prod' or deployment_type == 'taskotron-stg' or deployment_type == 'taskotron-dev' or deployment_type == 'taskotron-local' with_items: - /srv/taskotron - /srv/taskotron/artifacts