source: MondoRescue/branches/3.3/ansible/roles/trac/tasks/main.yml@ 3752

Last change on this file since 3752 was 3752, checked in by Bruno Cornec, 4 years ago

Update server to mga7

File size: 2.2 KB
Line 
1---
2
3- name: Check that docutils is installed
4 urpmi: name=python-docutils state=installed no-recommends=yes
5 tags: trac
6
7- name: Check that pip is installed
8 urpmi: name=python-pip state=installed no-recommends=yes
9 tags: trac
10
11- name: Install trac with fcgi
12 urpmi: name=trac-fcgi state=installed no-recommends=yes
13 tags: trac
14
15- name: Install trac plugins dir
16 file: path=/prj/trac/plugins mode=0775 owner=apache group=apache state=directory
17
18 # Do it only at upgrade of trac:
19- name: Install trac plugins
20 command: pip install --no-deps --upgrade -t /usr/lib/python2.7/site-packages/ {{ item }}
21 with_items:
22 - TracAccountManager
23 - TracTags
24 - TracRobotsTxt
25 - TracSpamFilter
26 - TracStats
27 notify: upgrade trac
28 tags: trac
29
30#- name: Upgrade trac with new plugins
31# command: trac-admin {{ item }} upgrade
32# with:
33# - /prj/trac/mondorescue.env
34# - /prj/trac/project-builder.env
35# - /prj/trac/dploy.env
36# - /prj/trac/pusk.env
37# - /prj/trac/uuwl.env
38# tags: trac
39
40- name: Configure trac
41 template: src=templates/trac.ini dest=/prj/trac/trac.ini owner=apache group=apache mode=0644 backup=yes
42 notify:
43 - restart httpd
44 tags: trac
45
46- name: Configure trac for project-builder.org
47 copy: src=files/project-builder.ini dest=/prj/trac/project-builder.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
48 notify:
49 - restart httpd
50 tags: trac
51
52- name: Configure trac for mondorescue.org
53 copy: src=files/mondorescue.ini dest=/prj/trac/mondorescue.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
54 notify:
55 - restart httpd
56 tags: trac
57
58- name: Configure trac for dploy.org
59 copy: src=files/dploy.ini dest=/prj/trac/dploy.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
60 notify:
61 - restart httpd
62 tags: trac
63
64- name: Configure trac for uuwl
65 copy: src=files/uuwl.ini dest=/prj/trac/uuwl.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
66 notify:
67 - restart httpd
68 tags: trac
69
70- name: Configure trac for pusk
71 copy: src=files/pusk.ini dest=/prj/trac/pusk.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
72 notify:
73 - restart httpd
74 tags: trac
75
76- name: Check that trac is running and enabled
77 service: name=httpd state=started enabled=yes
78 tags: trac
Note: See TracBrowser for help on using the repository browser.