more variables
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
---
|
||||
# tasks file for myapache
|
||||
- name: remove old conf file, if any
|
||||
file:
|
||||
path: /etc/httpd/conf.d/vhost.conf
|
||||
state: absent
|
||||
|
||||
- name: remove old documentRoot, if any
|
||||
file:
|
||||
path: /var/www/html/orsys.fr
|
||||
state: absent
|
||||
|
||||
- name: install apache
|
||||
yum:
|
||||
name: httpd
|
||||
state: latest
|
||||
|
||||
- name: conf httpd
|
||||
notify: reload httpd
|
||||
template:
|
||||
@@ -33,7 +44,7 @@
|
||||
state: directory
|
||||
|
||||
- name: create index file
|
||||
copy:
|
||||
template:
|
||||
src: index.html
|
||||
dest: "{{ documentroot }}/index.html"
|
||||
mode: 0644
|
||||
Reference in New Issue
Block a user