summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-13 01:20:39 +0100
committerMichael Scherer <misc@zarb.org>2014-12-13 01:20:39 +0100
commitebe4259b58a9172bec1d24f1153a9a44e2c89030 (patch)
tree3f27f253a5d27fd954d05daf20e3eeb62a023b1b
parentfd304d912f6b5087d7e9c5d9aef50603cbe1eae8 (diff)
Depend on the new git_repositories role
-rw-r--r--roles/local_deploy/meta/main.yml3
-rw-r--r--roles/local_deploy/tasks/main.yml15
2 files changed, 3 insertions, 15 deletions
diff --git a/roles/local_deploy/meta/main.yml b/roles/local_deploy/meta/main.yml
new file mode 100644
index 0000000..a5d9273
--- /dev/null
+++ b/roles/local_deploy/meta/main.yml
@@ -0,0 +1,3 @@
+---
+dependencies:
+- { role: git_repositories }
diff --git a/roles/local_deploy/tasks/main.yml b/roles/local_deploy/tasks/main.yml
index 5b39bf0..22d0b03 100644
--- a/roles/local_deploy/tasks/main.yml
+++ b/roles/local_deploy/tasks/main.yml
@@ -2,21 +2,6 @@
- yum: name={{ item }} state=installed
with_items:
- ansible
- - git
-
-- command: semanage fcontext -t git_user_content_t -a '{{ git_repositories_dir }}(/.*)?'
-
-- file: path={{ git_repositories_dir }} state=directory
-
-- file: path={{ git_repositories_dir }}/{{ item }} state=directory
- with_items:
- - public
- - private
-
-- shell: creates={{ git_repositories_dir }}/{{ item }}/config chdir={{ git_repositories_dir }}/{{ item }} git init --bare -q --shared=group
- with_items:
- - public
- - private
- copy: dest={{ git_repositories_dir }}/{{ item }}/hooks/post-receive src=post-receive.{{ item }}.sh mode=0755
with_items: