summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks/main.yml
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2018-12-06 15:46:13 -0500
committerMichael Scherer <misc@redhat.com>2018-12-06 15:46:13 -0500
commitbd7901775511af9a3296519d030227bc82ee3581 (patch)
tree72c6f3f1f99d2b100c2f99fe0a0380b27523c4f6 /roles/cgit/tasks/main.yml
parent25ba91ef0bf424087dc30a417a6b3758f876fffa (diff)
make the cgit role use LE
Diffstat (limited to 'roles/cgit/tasks/main.yml')
-rw-r--r--roles/cgit/tasks/main.yml18
1 files changed, 14 insertions, 4 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
index f6ac30a..d7cb520 100644
--- a/roles/cgit/tasks/main.yml
+++ b/roles/cgit/tasks/main.yml
@@ -3,13 +3,23 @@
with_items:
- cgit
-- lineinfile: dest=/etc/cgitrc line=include=/etc/cgitrepos
+- lineinfile:
+ dest: /etc/cgitrc
+ line: "include=/etc/cgitrepos"
-- template: mode=0644 src=cgitrepos dest=/etc/cgitrepos
+- template:
+ mode: 0644
+ src: cgitrepos
+ dest: /etc/cgitrepos
-- copy: mode=0644 src=cgit.httpd.conf dest=/etc/httpd/conf.d/cgit.conf
+- copy:
+ mode: 0644
+ src: cgit.httpd.conf
+ dest: /etc/httpd/conf.d/cgit.conf
notify: restart httpd
# TODO clean once the mess with domain name is solved
-- template: src=vhost.conf dest=/etc/httpd/conf.d/git.theopensourceway.org.conf
+- template:
+ src: vhost.conf
+ dest: /etc/httpd/conf.d/{{ website_domain }}.conf.d/cgit.conf
notify: restart httpd