From c9c3d8eb3aeda0b3ba999feed38bae29dd979582 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 16:31:06 +0100 Subject: Add a cgit role --- roles/cgit/files/cgitrepos | 6 ++++++ roles/cgit/tasks/main.yml | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 roles/cgit/files/cgitrepos create mode 100644 roles/cgit/tasks/main.yml 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 + -- cgit