diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-09-04 18:59:27 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-09-04 18:59:47 +0200 |
commit | 585dba2a76ddff85eb98ac3ef392aab2de3a496d (patch) | |
tree | b1455561da7548678392bb2454f34789f761af8a | |
parent | 8c5b86729306c4a9a5a8b9037e2b7ccc526dc9b4 (diff) | |
download | ansible-585dba2a76ddff85eb98ac3ef392aab2de3a496d.tar.gz ansible-585dba2a76ddff85eb98ac3ef392aab2de3a496d.tar.xz ansible-585dba2a76ddff85eb98ac3ef392aab2de3a496d.zip |
Ensure the default directory structure is created
-rw-r--r-- | roles/distgit/pagure/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/distgit/pagure/tasks/main.yml b/roles/distgit/pagure/tasks/main.yml index 7ae1b98a9..d44b8c029 100644 --- a/roles/distgit/pagure/tasks/main.yml +++ b/roles/distgit/pagure/tasks/main.yml @@ -113,6 +113,19 @@ - web - pagure +- name: create all the directories where we store the git repos + file: state=directory + path={{ item }} + owner=root group=packager mode=0775 + with_items: + - /srv/git/repositories/ + - /srv/git/repositories/forks + - /srv/git/repositories/requests + - /srv/git/remotes + tags: + - gitolite + - pagure + - name: Install the apache configuration file template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=0644 |