diff --git a/Readme.md b/Readme.md index 138da75..0d0c79b 100644 --- a/Readme.md +++ b/Readme.md @@ -9,3 +9,5 @@ **Pratique**: Modifiez le playbook apache.yml afin que le déploiement d'une nouvelle version du fichier vhost.conf entraîne un redémarrage du service apache. Attention, il vous faudra rajouter la directive *hosts* dans le playbook. + +Solution: voir branche "solution" diff --git a/apache.yml b/apache.yml deleted file mode 100644 index 40b9933..0000000 --- a/apache.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: install apache via ansible playbook - gather_facts: false - tasks: - - name: install apache - yum: - name: httpd - state: latest - - - name: conf httpd - template: - src: vhost.conf - dest: /etc/httpd/conf.d/vhost.conf - mode: 0640 - owner: root - group: apache - - - name: activate apache - service: - name: httpd - enabled: yes - - - name: open firewall port - firewalld: - service: http - permanent: yes - immediate: yes - state: enabled - ignore_errors: yes - - - name: create documentroot - file: - name: /var/www/html/orsys.fr - state: directory - - - name: create index file - copy: - src: index.html - dest: /var/www/html/orsys.fr/index.html - mode: 0644