summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: