From 7c4fc002eabe79c351dd85327be447ea6b316a8f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 17:26:48 +0100 Subject: Add proper selinux label --- roles/local_deploy/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/local_deploy') diff --git a/roles/local_deploy/tasks/main.yml b/roles/local_deploy/tasks/main.yml index e7ee0a4..5b39bf0 100644 --- a/roles/local_deploy/tasks/main.yml +++ b/roles/local_deploy/tasks/main.yml @@ -4,6 +4,8 @@ - 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 @@ -21,7 +23,6 @@ - public - private - - copy: src={{ item }} dest=/usr/local/bin/{{ item }} mode=0755 with_items: - ansible_run.sh -- cgit