From 247cb7ce58591df2d6f9de7cf85458541a2631b8 Mon Sep 17 00:00:00 2001 From: binary Date: Sun, 6 Dec 2020 15:38:42 +0100 Subject: vm2 for git repo testing --- roles/stagit/tasks/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 roles/stagit/tasks/main.yml (limited to 'roles/stagit') diff --git a/roles/stagit/tasks/main.yml b/roles/stagit/tasks/main.yml new file mode 100644 index 0000000..f4d999d --- /dev/null +++ b/roles/stagit/tasks/main.yml @@ -0,0 +1,29 @@ + +# stagit ~~ roles/stagit/tasks/main.yml +# Init git user and settings + +--- + +- name: ensure stagit is installed + package: + name: stagit + state: present + +- name: retrieve all public git repository + find: + paths: /data/git + patterns: enable_public + recurse: true + register: public_dirs + +- name: show public directories + debug: + var: public_dirs + +- name: create stagit static-files directory + file: + path: /var/www/htdocs/stagit + state: directory + owner: www + group: daemon + mode: 0644 -- cgit v1.2.3