Changeset 3799 in MondoRescue for branches/3.3/ansible/roles/trac/tasks


Ignore:
Timestamp:
Feb 16, 2024, 12:27:34 AM (6 months ago)
Author:
Bruno Cornec
Message:

Update Mondorescue server to mga9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/ansible/roles/trac/tasks/main.yml

    r3795 r3799  
    11---
    2 
    32- name: Check that docutils is installed
    43  urpmi: name=python-docutils state=installed no_recommends=yes
    5   tags: trac
    64
    75- name: Check that pip is installed
    86  urpmi: name=python-pip state=installed no_recommends=yes
    9   tags: trac
    107
    118- name: Install trac with fcgi
    129  urpmi: name=trac-fcgi state=installed no_recommends=yes
    13   tags: trac
    1410
    1511- name: Install trac plugins dir
     
    1713
    1814  # 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
    2924
     25  # Do it only at upgrade of trac:
    3026#- 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 }}"
    3929
    4030- name: Configure trac
     
    4232  notify:
    4333    - restart httpd
    44   tags: trac
    4534
    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 }}"
    4845  notify:
    4946    - 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
    7547
    7648- name: Check that trac is running and enabled
    7749  service: name=httpd state=started enabled=yes
    78   tags: trac
Note: See TracChangeset for help on using the changeset viewer.