/[pdpsoft]/trunk/eu.rcauth.pilot-ica/DS/ansible/roles/delegserver/tasks/dep-httpd.yml
ViewVC logotype

Contents of /trunk/eu.rcauth.pilot-ica/DS/ansible/roles/delegserver/tasks/dep-httpd.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3080 - (show annotations) (download) (as text)
Mon Aug 15 09:00:26 2016 UTC (6 years, 1 month ago) by msalle
File MIME type: text/x-yaml
File size: 1218 byte(s)
Create CRL publishing cron job in cron.d instead of crontab

1 ---
2
3 # Install apache
4
5 - name: install httpd
6 yum: name={{item}} state=present
7 with_items: "{{ httpd_packages }}"
8
9 # configure
10
11 - name: httpd config file present
12 template:
13 src: ssl.conf.j2
14 dest: /etc/httpd/conf.d/ssl.conf
15 owner: root
16 group: root
17 mode: 0644
18 backup: yes
19 notify: restart httpd
20
21 - name: httpoxy config present
22 copy:
23 src: 00-httpoxy.conf
24 dest: /etc/httpd/conf.d/00-httpoxy.conf
25 owner: root
26 group: root
27 mode: 0644
28 backup: yes
29 notify: restart httpd
30
31 # replace welcome page
32
33 - name: replace apache welcome page
34 stat:
35 path: "{{ httpd_web_root }}/index.html"
36 ignore_errors: yes
37 register: index_page
38
39 - name: create index page
40 file:
41 path: "{{ httpd_web_root }}/index.html"
42 owner: root
43 group: root
44 mode: 0644
45 state: touch
46 when: index_page.stat.exists == false
47
48 # publish last CRL to web root with cron
49
50 - name: copy cronjob to sbin
51 template:
52 src: crl_publish.sh.j2
53 dest: /usr/local/sbin/crl_publish.sh
54 owner: root
55 group: root
56 mode: 0744
57
58 - name: add cron job to run crl_publish script
59 copy:
60 src: crl_publish
61 dest: /etc/cron.d/crl_publish
62 owner: root
63 group: root
64 mode: 0644

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28