From 7514a39a1c93a43e72c5cc9285966428e09dd538 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Sat, 22 Jun 2013 04:14:16 +0000 Subject: [PATCH] make the dir before you try to stuff a userdir in there --- .../hosts/copr-be-dev.cloud.fedoraproject.org.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/playbooks/hosts/copr-be-dev.cloud.fedoraproject.org.yml b/playbooks/hosts/copr-be-dev.cloud.fedoraproject.org.yml index d9ebf6ca2a..f0969eb7e7 100644 --- a/playbooks/hosts/copr-be-dev.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/copr-be-dev.cloud.fedoraproject.org.yml @@ -43,15 +43,16 @@ - screen + - name: make /srv dirs + file: state=directory path=$item + with_items: + - /srv/copr-work + - /srv/copr-repos + - name: make copr account action: user name=copr state=present system=yes home=/srv/copr-work/copr - - name: make /srv dirs - file: state=directory path=$item owner=copr group=copr - with_items: - - /srv/copr-work - - /srv/copr-repos - name: setup dirs there action: file state=directory path=/srv/copr-work/copr/$item owner=copr group=copr mode=0700