diff --git a/roles/lb-web/tasks/main.yml b/roles/lb-web/tasks/main.yml index d1c92d8..20a8677 100644 --- a/roles/lb-web/tasks/main.yml +++ b/roles/lb-web/tasks/main.yml @@ -1,11 +1,17 @@ ---- - - name: creation repertoir - file: - path: /home/ - state: directory +--- + - name: installation php et apache ... + apt: + name: + - apache2 + - php + - php-mbstring + - php-mysql + - mariadb-client + state: present + - name: download and extract wordpress unarchive: - src: "{{ depl_url }}/{{ depl_wordpress }}" + src: https://fr.wordpress.org/latest-fr_FR.tar.gz dest: /home/ remote_src: yes owner: www-data @@ -25,14 +31,3 @@ recurse: yes owner: 33 group: 33 - -# - name: Fix permissions -# shell: chown -R www-data /var/www/wordpress/* -# -# - name: Update default Apache site -# lineinfile: -# dest=/etc/apache2/sites-enabled/000-default.conf -# regexp="(.)+DocumentRoot /var/www/html" -# line="DocumentRoot /var/www/wordpress" -# notify: -# - restart apache2