diff options
author | binary <me@rgoncalves.se> | 2020-12-06 15:38:42 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-12-06 15:38:42 +0100 |
commit | 247cb7ce58591df2d6f9de7cf85458541a2631b8 (patch) | |
tree | b895aaa0b0bc3840bbf2b13f311dfa0023ce5f16 | |
parent | 7d6b98e708f9f468a54cfb114bf45cc63a69b9bd (diff) | |
download | infrastructure-247cb7ce58591df2d6f9de7cf85458541a2631b8.tar.gz |
vm2 for git repo testing
-rw-r--r-- | playbooks/vm2.rgoncalves.se.yml | 13 | ||||
-rw-r--r-- | roles/stagit/tasks/main.yml | 29 |
2 files changed, 42 insertions, 0 deletions
diff --git a/playbooks/vm2.rgoncalves.se.yml b/playbooks/vm2.rgoncalves.se.yml new file mode 100644 index 0000000..0cc669a --- /dev/null +++ b/playbooks/vm2.rgoncalves.se.yml @@ -0,0 +1,13 @@ + +# vm0 ~~ playbooks/vm0.rgoncalves.se.yml +# virtual machine 0 initialization +# mainly used for gaming servers + +--- + +- hosts: vm2 + roles: + + - { role: git } + - { role: stagit } + #- { role: grafana } 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 |