Last change
on this file since 3869 was 3795, checked in by Bruno Cornec, 6 months ago |
Untag v3.3.0 never really published in the past - will start from here
|
File size:
1.5 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 link
|
---|
18 | file: src=/usr/sbin/queue dest=/usr/bin/queue state=link owner=root group=root
|
---|
19 | tags: sympa
|
---|
20 |
|
---|
21 | - name: Fix sympa-www setup
|
---|
22 | copy: src=files/sympa.conf dest=/etc/httpd/conf/sites.d/sympa.conf mode=0644 owner=root group=root backup=yes
|
---|
23 | notify:
|
---|
24 | - reload httpd
|
---|
25 | tags: sympa
|
---|
26 |
|
---|
27 | - name: Check sympa.conf
|
---|
28 | lineinfile: destfile=/etc/sympa/sympa.conf state=present line='{{ item }}' owner=root group=sympa mode=0640 backup=yes
|
---|
29 | with_items:
|
---|
30 | - 'key_passwd {{ keypwd }}'
|
---|
31 | - 'db_user sympa'
|
---|
32 | - 'db_passwd {{ dbpwd }}'
|
---|
33 | - 'domain {{ domain }}'
|
---|
34 | - 'listmaster listmaster@mondorescue.org,bruno@mondorescue.org,bruno@project-builder.org,bruno@hyper-linux.org,bruno.cornec@hpe.com,bruno@victoria.frmug.org'
|
---|
35 | - 'http_host http://www.{{ domain }}/sympa'
|
---|
36 | - 'wwsympa_url http://www.{{ domain }}/sympa'
|
---|
37 | - 'title MondoRescue Mailing lists service'
|
---|
38 | - 'use_fast_cgi 1'
|
---|
39 | notify:
|
---|
40 | - restart sympa
|
---|
41 | tags: sympa
|
---|
42 |
|
---|
43 | - name: Check that mariadb is running and enabled
|
---|
44 | service: name=mysqld state=started enabled=yes
|
---|
45 | tags: sympa
|
---|
46 |
|
---|
47 | - name: Check that sympa is running and enabled
|
---|
48 | service: name=sympa state=started enabled=yes
|
---|
49 | tags: sympa
|
---|
Note:
See
TracBrowser
for help on using the repository browser.