2
0

Exercice: commit initial

This commit is contained in:
2018-01-08 19:24:19 +01:00
commit 4acecc8e04
114 changed files with 2465 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
---
# tasks file for 15_apache
- name: install apache
tags: httpd
yum:
name: httpd
state: latest
- name: conf httpd
tags: httpd
notify: reload httpd
template:
src: vhost.conf
dest: /etc/httpd/conf.d/vhost.conf
mode: 0640
owner: root
group: apache
- name: activate apache
tags: httpd
service:
name: httpd
enabled: yes
state: restarted
- name: open firewall port
tags: httpd
firewalld:
service: http
permanent: yes
immediate: yes
state: enabled
ignore_errors: yes
notify: reload firewalld
- name: create documentroot
tags: httpd
file:
name: /var/www/html/orsys.fr
state: directory
- name: create index file
tags: httpd
copy:
src: index.html
dest: /var/www/html/orsys.fr/index.html
mode: 0644