source: MondoRescue/branches/3.3/ansible/roles/sympa/tasks/main.yml@ 3667

Last change on this file since 3667 was 3667, checked in by Bruno Cornec, 7 years ago

Many updates to MR setup

File size: 1.4 KB
Line 
1---
2
3- name: Check that mandatory packages are installed
4 urpmi: name={{ item }} state=installed no-recommends=yes
5 with_items:
6 - mariadb
7 - sympa-www
8 - perl-DBD-mysql
9 - perl-Crypt-CipherSaber
10 - perl-CGI-Fast
11 tags: sympa
12
13- name: Check /etc/sympa rights
14 file: path=/etc/sympa mode=0775 owner=root group=sympa state=directory
15 tags: sympa
16
17- name: Fix sympa-www setup
18 copy: src=files/sympa.conf dest=/etc/httpd/conf/sites.d/sympa.conf mode=0644 owner=root group=root backup=yes
19 notify:
20 - reload httpd
21 tags: sympa
22
23- name: Check sympa.conf
24 lineinfile: destfile=/etc/sympa/sympa.conf state=present line='{{ item }}' owner=root group=sympa mode=0640 backup=yes
25 with_items:
26 - 'key_passwd {{ keypwd }}'
27 - 'db_user sympa'
28 - 'db_passwd {{ dbpwd }}'
29 - 'domain {{ domain }}'
30 - 'listmaster listmaster@mondorescue.org,bruno@mondorescue.org,bruno@project-builder.org,bruno@hyper-linux.org,bruno.cornec@hpe.com,bruno@victoria.frmug.org'
31 - 'http_host http://www.{{ domain }}/sympa'
32 - 'wwsympa_url http://www.{{ domain }}/sympa'
33 - 'title MondoRescue Mailing lists service'
34 - 'use_fast_cgi 1'
35 notify:
36 - restart sympa
37 tags: sympa
38
39- name: Check that mariadb is running and enabled
40 service: name=mysqld state=running enabled=yes
41 tags: sympa
42
43- name: Check that sympa is running and enabled
44 service: name=sympa state=running enabled=yes
45 tags: sympa
Note: See TracBrowser for help on using the repository browser.