Parent Directory
|
Revision Log
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 |
grid.support@nikhef.nl | ViewVC Help |
Powered by ViewVC 1.1.28 |