From 16ef5ed8648346163bc970b6b8f063c9ca8a30fc Mon Sep 17 00:00:00 2001 From: don sizemore Date: Mon, 14 Mar 2016 17:50:02 -0400 Subject: [PATCH] #6 permission fixes for condor user --- ansible/roles/condor/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/roles/condor/tasks/main.yml b/ansible/roles/condor/tasks/main.yml index 61e54d049..574613b34 100644 --- a/ansible/roles/condor/tasks/main.yml +++ b/ansible/roles/condor/tasks/main.yml @@ -30,6 +30,14 @@ sudo: yes file: path="{{condor.cred_dir}}" state=directory owner=condor group=condor mode=0755 +- name: ensure condor user can write to condor.cred_dir + sudo: yes + file: path="{{condor.cred_dir}}" state=directory owner=condor group=condor recurse=yes + +- name: ensure condor user can write its logs + sudo: yes + file: path=/var/log/condor state=directory owner=condor group=condor recurse=yes + - name: place condor systemd.file so condor doesn't run as root sudo: yes copy: src=condor.service dest=/usr/lib/systemd/system/ owner=root group=root mode=0644