summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 17:26:48 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 17:26:48 +0100
commit7c4fc002eabe79c351dd85327be447ea6b316a8f (patch)
tree72e6b8bcae8cf577c00ea716868a928b6abea6d1
parent19e0f115f0dcb82cbf2127a7ef8ee65159e08c54 (diff)
Add proper selinux label
-rw-r--r--roles/local_deploy/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
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