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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3077 - (hide annotations) (download) (as text)
Mon Aug 8 13:37:02 2016 UTC (5 years, 9 months ago) by msalle
File MIME type: text/x-yaml
File size: 1172 byte(s)
Add mysql dump and restore scripts plus cronjob for the former.
Move 00-httpoxy from templates to file (it's not a template)
Update the oauth2 war and jar files.

1 tamasb 2880 ---
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 tamasb 3058 - name: httpoxy config present
22 msalle 3077 file:
23     path: /etc/httpd/conf.d/00-httpoxy.conf
24 tamasb 3058 owner: root
25     group: root
26     mode: 0644
27     backup: yes
28     notify: restart httpd
29    
30 tamasb 2981 # replace welcome page
31    
32     - name: replace apache welcome page
33     stat:
34     path: "{{ httpd_web_root }}/index.html"
35     ignore_errors: yes
36     register: index_page
37    
38     - name: create index page
39     file:
40     path: "{{ httpd_web_root }}/index.html"
41     owner: root
42     group: root
43     mode: 0644
44     state: touch
45     when: index_page.stat.exists == false
46 tamasb 3002
47     # publish last CRL to web root with cron
48    
49     - name: copy cronjob to sbin
50     template:
51     src: crl_publish.sh.j2
52     dest: /usr/local/sbin/crl_publish.sh
53     owner: root
54     group: root
55     mode: 0744
56    
57     - name: add cron job to run crl_publish script
58     cron:
59     name: "publish crl"
60     user: root
61     job: "/usr/local/sbin/crl_publish.sh"

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