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

Last change on this file since 3656 was 3656, checked in by bruno, 2 years ago

More services up and runnig for the MondoRescue? server

File size: 2.1 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
16  pip: name={{ item }} state=present umask=0022
17  with_items:
18    - TracAccountManager
19    - TracTags
20    - TracRobotsTxt
21    - "TracSpamFilter<1.2"
22#  register: result
23  notify: upgrade trac
24  tags: trac
25
26#- name: Upgrade trac with new plugins
27#  command: trac-admin {{ item }} upgrade
28#  with:
29#   - /prj/trac/mondorescue.env
30#   - /prj/trac/project-builder.env
31#   - /prj/trac/dploy.env
32#   - /prj/trac/pusk.env
33#   - /prj/trac/uuwl.env
34#  tags: trac
35
36- name: Configure trac
37  template: src=templates/trac.ini dest=/prj/trac/trac.ini owner=apache group=apache mode=0644 backup=yes
38  notify:
39    - restart httpd
40  tags: trac
41
42- name: Configure trac for project-builder.org
43  copy: src=files/project-builder.ini dest=/prj/trac/project-builder.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
44  notify:
45    - restart httpd
46  tags: trac
47
48- name: Configure trac for mondorescue.org
49  copy: src=files/mondorescue.ini dest=/prj/trac/mondorescue.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
50  notify:
51    - restart httpd
52  tags: trac
53
54- name: Configure trac for dploy.org
55  copy: src=files/dploy.ini dest=/prj/trac/dploy.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
56  notify:
57    - restart httpd
58  tags: trac
59
60- name: Configure trac for uuwl
61  copy: src=files/uuwl.ini dest=/prj/trac/uuwl.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
62  notify:
63    - restart httpd
64  tags: trac
65
66- name: Configure trac for pusk
67  copy: src=files/pusk.ini dest=/prj/trac/pusk.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
68  notify:
69    - restart httpd
70  tags: trac
71
72- name: Check that trac is running and enabled
73  service: name=httpd state=running enabled=yes
74  tags: trac
Note: See TracBrowser for help on using the repository browser.