summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 16:31:06 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 16:31:06 +0100
commitc9c3d8eb3aeda0b3ba999feed38bae29dd979582 (patch)
treec574100f0604112a63ed30daeeb3f62ea39fe06b
parent26a41074d67428fa8a7216e3afbda0283c8fde5b (diff)
Add a cgit role
-rw-r--r--roles/cgit/files/cgitrepos6
-rw-r--r--roles/cgit/tasks/main.yml8
2 files changed, 14 insertions, 0 deletions
diff --git a/roles/cgit/files/cgitrepos b/roles/cgit/files/cgitrepos
new file mode 100644
index 0000000..72089e3
--- /dev/null
+++ b/roles/cgit/files/cgitrepos
@@ -0,0 +1,6 @@
+repo.url=ansible
+repo.path=/srv/git_repos/public
+repo.desc=Ansible configuration for the server
+repo.owner=mscherer@redhat.com
+#repo.readme=info/web/about.html
+
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
new file mode 100644
index 0000000..5488df6
--- /dev/null
+++ b/roles/cgit/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+- yum: name={{ item }} state=installed
+ with_items:
+ - cgit
+
+- lineinfile: dest=/etc/cgitrc line=include=/etc/cgitrepos
+- copy: mode=0644 src=cgitrepos dest=/etc/cgitrepos
+