diff --git a/12_handlers/apache.yml b/12_handlers/apache.yml index 06b17e1..7a711cf 100644 --- a/12_handlers/apache.yml +++ b/12_handlers/apache.yml @@ -1,24 +1,18 @@ --- - name: install apache via ansible playbook hosts: test - user: ansible - become: true handlers: - name: reload httpd service: name: httpd state: restarted - - name: reload firewalld - service: - name: firewalld - state: reloaded - tasks: - name: install apache yum: name: httpd state: latest + - name: conf httpd notify: reload httpd template: @@ -40,7 +34,6 @@ immediate: yes state: enabled ignore_errors: yes - notify: reload firewalld - name: create documentroot file: @@ -51,4 +44,4 @@ copy: src: index.html dest: /var/www/html/orsys.fr/index.html - mode: 0644 \ No newline at end of file + mode: 0644