From ebe4259b58a9172bec1d24f1153a9a44e2c89030 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 01:20:39 +0100 Subject: Depend on the new git_repositories role --- roles/local_deploy/meta/main.yml | 3 +++ roles/local_deploy/tasks/main.yml | 15 --------------- 2 files changed, 3 insertions(+), 15 deletions(-) create mode 100644 roles/local_deploy/meta/main.yml (limited to 'roles') 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: -- cgit