From ef0d236d19dfed1673c0c3e84543a264b9b59042 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Thu, 6 May 2021 17:09:54 +0200 Subject: [PATCH] solution --- apache_correction.yml | 62 ------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 apache_correction.yml diff --git a/apache_correction.yml b/apache_correction.yml deleted file mode 100644 index 9df1298..0000000 --- a/apache_correction.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -- name: install apache via ansible playbook - hosts: test - user: ansible - become: true - handlers: - - name: reload httpd - service: - name: httpd - state: reloaded - - - name: reload firewalld - service: - name: firewalld - state: reloaded - - tags: apache - tasks: - - name: install apache - yum: - name: httpd - state: latest - - - name: conf httpd - notify: reload 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 - tags: firewall - firewalld: - service: http - permanent: yes - immediate: yes - state: enabled - ignore_errors: yes - notify: reload firewalld - - - name: create documentroot - tags: - - docroot - file: - name: /var/www/html/orsys.fr - state: directory - - - name: create index file - tags: - - docroot - copy: - src: index.html - dest: /var/www/html/orsys.fr/index.html - mode: 0644 -