/[pdpsoft]/trunk/egi-pilot/onlineCA/DS/ansible/roles/delegserver/tasks/dep-httpd.yml
ViewVC logotype

Annotation of /trunk/egi-pilot/onlineCA/DS/ansible/roles/delegserver/tasks/dep-httpd.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3176 - (hide annotations) (download) (as text)
Thu Mar 30 15:19:20 2017 UTC (5 years, 1 month ago) by msalle
File MIME type: text/x-yaml
File size: 1505 byte(s)
Install public CA files in webroot.

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 msalle 3152 - 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 tamasb 2958 # replace welcome page
32    
33     - name: copy CA cert to web root
34     copy:
35     remote_src: true
36     src: "{{ ca_cert }}"
37     dest: "{{ httpd_web_root }}/{{ ca_name }}.pem"
38     owner: root
39     group: root
40     mode: 0644
41    
42 msalle 3176 - name: copy CA signing policy to web root
43 tamasb 2958 copy:
44     remote_src: true
45     src: "{{ ca_signing_policy }}"
46     dest: "{{ httpd_web_root }}/{{ ca_name }}.signing_policy"
47     owner: root
48     group: root
49     mode: 0644
50    
51 msalle 3176 - name: copy CA dummy CRL to web root
52     copy:
53     remote_src: true
54     src: "{{ ca_crl }}"
55     dest: "{{ httpd_web_root }}/{{ ca_name }}_crl.pem"
56     owner: root
57     group: root
58     mode: 0644
59    
60     - name: copy CA tarball to web root
61     copy:
62     remote_src: true
63     src: "{{ ca_tarball }}"
64     dest: "{{ httpd_web_root }}/{{ ca_name }}.tgz"
65     owner: root
66     group: root
67     mode: 0644
68    
69 tamasb 2958 - name: create index page
70     template:
71     src: index.html.j2
72     dest: "{{ httpd_web_root }}/index.html"
73     owner: root
74     group: root
75     mode: 0644
76     backup: yes
77    

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