From 5dbe90c0cfd65c89915b5aaccd2fa15a7e8e4f3d Mon Sep 17 00:00:00 2001 From: clime Date: Thu, 16 Feb 2017 20:22:06 +0100 Subject: [PATCH] install new dist-git package only to pkgs02.stg for the time being --- roles/distgit/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/distgit/tasks/main.yml b/roles/distgit/tasks/main.yml index a81679e313..e70e0409a0 100644 --- a/roles/distgit/tasks/main.yml +++ b/roles/distgit/tasks/main.yml @@ -68,19 +68,19 @@ # This is the Git setup itself: group, root directory, scripts,... - name: install the Dist Git-related httpd config copy: src=clime-dist-git-epel-7.repo dest=/etc/yum.repos.d/clime-dist-git-epel-7.repo - when: env == "staging" + when: env == "staging" and inventory_hostname.startswith('pkgs02') tags: - distgit - name: install dist-git yum: pkg=dist-git state=present - when: env == "staging" + when: env == "staging" and inventory_hostname.startswith('pkgs02') tags: - distgit - name: create the distgit root directory (/srv/git) file: dest=/srv/git state=directory mode=0755 - when: env != "staging" + when: env != "staging" or inventory_hostname.startswith('pkgs01') tags: - distgit @@ -96,7 +96,7 @@ - name: set the SELinux policy for the distgit root directory command: semanage fcontext -a -t git_content_t "/srv/git(/.*)?" - when: distgitcontext.stdout.find('git_content_t') == -1 and env != "staging" + when: distgitcontext.stdout.find('git_content_t') == -1 tags: - config - distgit @@ -104,7 +104,7 @@ - name: create the distgit root directory (/srv/git/repositories) file: dest=/srv/git/repositories state=directory mode=2775 group=packager - when: env != "staging" + when: env != "staging" or inventory_hostname.startswith('pkgs01') tags: - distgit @@ -137,7 +137,7 @@ - setup_git_package - mkbranch - mkbranch_branching - when: env != "staging" + when: env != "staging" or inventory_hostname.startswith('pkgs01') tags: - config - distgit