/[pdpsoft]/trunk/egi-pilot/masterportal-pusp/ansible/roles/masterportal/tasks/dep-httpd.yml
ViewVC logotype

Contents of /trunk/egi-pilot/masterportal-pusp/ansible/roles/masterportal/tasks/dep-httpd.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2962 - (show annotations) (download) (as text)
Fri Apr 1 08:52:41 2016 UTC (6 years, 4 months ago) by tamasb
File MIME type: text/x-yaml
File size: 645 byte(s)
add empty index page in webroot

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 # replace welcome page
22
23 - name: replace apache welcome page
24 stat:
25 path: /var/www/html/index.html
26 ignore_errors: yes
27 register: index_page
28
29 - name: create index page
30 file:
31 path: /var/www/html/index.html
32 owner: root
33 group: root
34 mode: 0644
35 state: touch
36 when: index_page.stat.exists == false
37

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