Changeset 3799 in MondoRescue for branches/3.3/ansible/roles/trac
- Timestamp:
- Feb 16, 2024, 12:27:34 AM (15 months ago)
- Location:
- branches/3.3/ansible/roles/trac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/ansible/roles/trac/tasks/main.yml
r3795 r3799 1 1 --- 2 3 2 - name: Check that docutils is installed 4 3 urpmi: name=python-docutils state=installed no_recommends=yes 5 tags: trac6 4 7 5 - name: Check that pip is installed 8 6 urpmi: name=python-pip state=installed no_recommends=yes 9 tags: trac10 7 11 8 - name: Install trac with fcgi 12 9 urpmi: name=trac-fcgi state=installed no_recommends=yes 13 tags: trac14 10 15 11 - name: Install trac plugins dir … … 17 13 18 14 # Do it only at upgrade of trac: 19 - name: Install trac plugins 20 command: pip install --no-deps --upgrade -t /usr/lib/python3.10/site-packages/ {{ item }} 21 with_items: 22 #- TracAccountManager # Installed from trunk 23 - TracTags 24 - TracRobotsTxt 25 - TracSpamFilter 26 - TracStats 27 notify: upgrade trac 28 tags: trac 15 #- name: Install trac plugins 16 #command: pip install --no-deps --upgrade -t /usr/lib/python3.10/site-packages/ {{ item }} 17 #with_items: 18 #- TracAccountManager 19 #- TracTags 20 #- TracRobotsTxt 21 #- TracSpamFilter 22 #- TracStats 23 #notify: upgrade trac 29 24 25 # Do it only at upgrade of trac: 30 26 #- 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 27 # command: trac-admin /prj/trac/{{ item }}.env upgrade 28 # loop: "{{ prj }}" 39 29 40 30 - name: Configure trac … … 42 32 notify: 43 33 - restart httpd 44 tags: trac45 34 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 35 - name: Configure trac svn hook 36 copy: src=templates/trac-svn-hook dest=/prj/trac/trac-svn-hook owner=apache group=apache mode=0755 backup=yes 37 38 - name: Configure svn post-commit hook 39 lineinfile: path="/prj/svn/{{ item }}/hooks/post-commit" state=present line='/prj/trac/trac-svn-hook $1 $2' owner=bruno group=root mode=0755 backup=yes create=true 40 loop: "{{ prj }}" 41 42 - name: "Configure trac ini file for the projects" 43 copy: src="files/{{ item }}.ini" dest="/prj/trac/{{ item }}.env/conf/trac.ini" owner=apache group=apache mode=0644 backup=yes 44 loop: "{{ prj }}" 48 45 notify: 49 46 - restart httpd 50 tags: trac51 52 - name: Configure trac for mondorescue.org53 copy: src=files/mondorescue.ini dest=/prj/trac/mondorescue.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes54 notify:55 - restart httpd56 tags: trac57 58 - name: Configure trac for dploy.org59 copy: src=files/dploy.ini dest=/prj/trac/dploy.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes60 notify:61 - restart httpd62 tags: trac63 64 - name: Configure trac for uuwl65 copy: src=files/uuwl.ini dest=/prj/trac/uuwl.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes66 notify:67 - restart httpd68 tags: trac69 70 - name: Configure trac for pusk71 copy: src=files/pusk.ini dest=/prj/trac/pusk.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes72 notify:73 - restart httpd74 tags: trac75 47 76 48 - name: Check that trac is running and enabled 77 49 service: name=httpd state=started enabled=yes 78 tags: trac -
branches/3.3/ansible/roles/trac/templates/trac.ini
r3757 r3799 132 132 email_sender = SmtpEmailSender 133 133 ignore_domains = 134 smtp_always_cc = bruno .cornec@hpe.com134 smtp_always_cc = bruno@musique-ancienne.org 135 135 smtp_enabled = true 136 136 smtp_server = {{ smtp }}
Note:
See TracChangeset
for help on using the changeset viewer.